Browse Source

异常装车审核人名称修改

single_db
汤建军 1 year ago
parent
commit
6dce4c632e
  1. 48
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java

48
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java

@ -2857,28 +2857,34 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
//这里就需要进行该客户的异常包件列表进行查询
List<DistributionLoadscanAbnormalVO> loadscanAbnormalVOS = baseMapper.selectAbnormalPackageList(signforEntity.getReservationId(), signforEntity.getDeliveryId());
loadscanAbnormalVOS.forEach(p -> {
switch (p.getOrderPackageStatus()) {
case "10":
p.setOrderPackageStatusName(OrderPackageStatusConstant.weiruku.getName());
break;
case "20":
p.setOrderPackageStatusName(OrderPackageStatusConstant.yiruku.getName());
break;
case "30":
p.setOrderPackageStatusName(OrderPackageStatusConstant.zhongzhuanruku.getName());
break;
case "40":
p.setOrderPackageStatusName(OrderPackageStatusConstant.zhiliu.getName());
break;
// case "50":
// switch (p.getOrderPackageStatus()) {
// case "10":
// p.setOrderPackageStatusName(OrderPackageStatusConstant.weiruku.getName());
// break;
// case "20":
// p.setOrderPackageStatusName(OrderPackageStatusConstant.yiruku.getName());
// break;
// case "30":
// p.setOrderPackageStatusName(OrderPackageStatusConstant.zhongzhuanruku.getName());
// break;
// case "40":
// p.setOrderPackageStatusName(OrderPackageStatusConstant.zhiliu.getName());
// break;
//// case "50":
//// p.setOrderPackageStatusName(OrderPackageStatusConstant.yichuku.getName());
//// break;
// case "60":
// p.setOrderPackageStatusName(OrderPackageStatusConstant.yichuku.getName());
// break;
case "60":
p.setOrderPackageStatusName(OrderPackageStatusConstant.yichuku.getName());
break;
case "70":
p.setOrderPackageStatusName(OrderPackageStatusConstant.yiqianshou.getName());
break;
// case "70":
// p.setOrderPackageStatusName(OrderPackageStatusConstant.yiqianshou.getName());
// break;
// }
if (p.getOrderPackageStatus().equals(OrderPackageStatusConstant.yiqianshou.getValue())){
p.setOrderPackageStatusName(OrderPackageStatusConstant.yiqianshou.getName());
}else {
p.setOrderPackageStatusName("未签收");
}
switch (p.getOrderPackageFreezeStatus()) {
case "10":
@ -2980,7 +2986,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
distributionParcelListService.updateById(parcelListEntity);
distributionLoadscanAbnormalEntity.setAuditingStatus(2);
distributionLoadscanAbnormalEntity.setAuditingTime(new Date());
distributionLoadscanAbnormalEntity.setAuditingUser(AuthUtil.getUser().getUserName());
distributionLoadscanAbnormalEntity.setAuditingUser(AuthUtil.getUser().getNickName());
distributionLoadscanAbnormalService.updateById(distributionLoadscanAbnormalEntity);
reservationEntity.setReservationNum(reservationEntity.getReservationNum() + distributionLoadscanAbnormalEntity.getLoadingQuantity());
distributionReservationMapper.updateById(reservationEntity);

Loading…
Cancel
Save