|
|
|
@ -1057,8 +1057,10 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
//查询当前登录人的配送任务
|
|
|
|
|
BasicdataDriverArteryEntity driverArtery = iBasicdataDriverArteryClient.getDriverArtery(user.getUserId()); |
|
|
|
|
if (null == driverArtery) { |
|
|
|
|
log.error("没有司机的信息!!"); |
|
|
|
|
return page.setRecords(distributionAppDeliveryListVOS); |
|
|
|
|
} |
|
|
|
|
//查询司机的任务
|
|
|
|
|
List<Long> deliveryIds = distributionDeliverySelfMapper.selectdeliveryList(driverArtery.getId()); |
|
|
|
|
if (deliveryIds.size() > 0) { |
|
|
|
|
distributionAppDeliveryListVOS = baseMapper.selectDistributionAppDeliveryListPage(page, distributionAppDeliveryListDTO, deliveryIds); |
|
|
|
@ -1123,9 +1125,9 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
//查询是否备货
|
|
|
|
|
distributionAppDeliveryListVO.setIsstock("备货完成"); |
|
|
|
|
Integer reNub = distributionStockMapper.selectCount(new QueryWrapper<DistributionStockEntity>().lambda() |
|
|
|
|
.in(DistributionStockEntity::getReservationId, reList) |
|
|
|
|
).intValue(); |
|
|
|
|
Integer deliveryNumber = distributionAppDeliveryListVO.getDeliveryNumber(); |
|
|
|
|
.in(reList.size() > 0,DistributionStockEntity::getReservationId, reList) |
|
|
|
|
).intValue(); //扫描件数
|
|
|
|
|
Integer deliveryNumber = distributionAppDeliveryListVO.getDeliveryNumber(); //配送件数
|
|
|
|
|
if (reNub < deliveryNumber) { |
|
|
|
|
distributionAppDeliveryListVO.setIsstock("备货未完成"); |
|
|
|
|
} |
|
|
|
|