|
|
|
@ -6825,6 +6825,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
@Override |
|
|
|
|
@Transactional |
|
|
|
|
public void maintenanceDeliveryInfo(Long deliveryId) { |
|
|
|
|
log.info(">>>>>>>>>>>>>>> 车次状态维护1 代码执行 deliveryId={}",deliveryId); |
|
|
|
|
String method = "###################DistributionDeliveryListServiceImpl执行方法maintenanceDeliveryInfo,"; |
|
|
|
|
if (Func.isEmpty(deliveryId)) { |
|
|
|
|
log.info(method + "参数缺失deliveryId:{}", deliveryId); |
|
|
|
@ -6837,6 +6838,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
} |
|
|
|
|
//查询指定配送计划装车件数
|
|
|
|
|
DistributionLoadingNumDTO deliveryLoadingNum = distributionDeliveryListMapper.selectDeliveryLoadingNum(deliveryId); |
|
|
|
|
log.info(">>>>>>>>>>>>>>> 车次状态维护2 代码执行 deliveryLoadingNum={}",deliveryLoadingNum); |
|
|
|
|
|
|
|
|
|
int loadingNum = 0; |
|
|
|
|
int signingNum = 0; |
|
|
|
@ -6861,9 +6863,13 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
List<DistributionSignforEntity> list = distributionSignforService.list(Wrappers.<DistributionSignforEntity>query().lambda() |
|
|
|
|
.eq(DistributionSignforEntity::getDeliveryId, deliveryId) |
|
|
|
|
); |
|
|
|
|
log.info(">>>>>>>>>>>>>>> 车次状态维护3 代码执行 list={}",list); |
|
|
|
|
|
|
|
|
|
if (!list.isEmpty()) { |
|
|
|
|
//查看所有的签收信息是否均已完成
|
|
|
|
|
boolean anyMatch = list.stream().allMatch(s -> s.getSigningStatus().equals(SignforStatusConstant.yiqianshou.getValue())); |
|
|
|
|
log.info(">>>>>>>>>>>>>>> 车次状态维护4 代码执行 anyMatch={}",anyMatch); |
|
|
|
|
|
|
|
|
|
if (anyMatch) { |
|
|
|
|
deliveryListEntity.setDeliveryStatus(DeliveryStatusConstant.yiwancheng.getValue()); |
|
|
|
|
} |
|
|
|
|