|
|
|
@ -389,7 +389,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if (Func.isNotEmpty(packageLoadingMap.get(p.getId()))){ |
|
|
|
|
DistributionLoadscanEntity distributionLoadscanEntity = packageLoadingMap.get(p.getId()); |
|
|
|
|
detailDTO.setLoadingTime(distributionLoadscanEntity.getScanTime()); |
|
|
|
|
detailDTO.setLoadingStatusName(OrderPackageLoadingStatusConstant.weizhuancghe.getName()); |
|
|
|
|
detailDTO.setLoadingStatusName(OrderPackageLoadingStatusConstant.yizhuangche.getName()); |
|
|
|
|
if (distributionLoadscanEntity.getSignforState().equals(LoadScanSigningStatusConstant.yiqianshou.getValue())){ |
|
|
|
|
//签收
|
|
|
|
|
detailDTO.setSigningTime(distributionLoadscanEntity.getSigningTime()); |
|
|
|
@ -474,31 +474,32 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
@Transactional |
|
|
|
|
public R recheck(Long id) { |
|
|
|
|
public R recheck(DistributionSignforDTO distributionSignforDTO) { |
|
|
|
|
|
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
if (Func.isEmpty(myCurrentWarehouse)) { |
|
|
|
|
return R.fail(403, "未授权!!!"); |
|
|
|
|
} |
|
|
|
|
if (Func.isEmpty(id)){ |
|
|
|
|
log.error("参数缺失,signforId:{}",id); |
|
|
|
|
if (Func.isEmpty(distributionSignforDTO.getId())){ |
|
|
|
|
log.error("参数缺失,signforId:{}",distributionSignforDTO.getId()); |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
DistributionSignforEntity distributionSignfor = this.getById(id); |
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-dd-mm HH:mm:ss.SSS"); |
|
|
|
|
DistributionSignforEntity distributionSignfor = this.getById(distributionSignforDTO.getId()); |
|
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
|
distributionSignfor.setExamineUserId(user.getUserId()); |
|
|
|
|
distributionSignfor.setSigningStatus(SignforStatusConstant.yiqianshou.getValue()); |
|
|
|
|
//复核时间为签收时间
|
|
|
|
|
distributionSignfor.setSigningTime(sdf.format(new Date())); |
|
|
|
|
distributionSignfor.setExamineUserName(user.getNickName()); |
|
|
|
|
this.updateById(distributionSignfor); |
|
|
|
|
distributionAsyncService.sendReviewFactory(id,myCurrentWarehouse.getName(), myCurrentWarehouse.getId()); |
|
|
|
|
this.updatePicture(distributionSignforDTO); |
|
|
|
|
|
|
|
|
|
distributionAsyncService.sendReviewFactory(distributionSignforDTO.getId(),myCurrentWarehouse.getName(), myCurrentWarehouse.getId()); |
|
|
|
|
//还需要对未装车未签收的包件进行状态的回退
|
|
|
|
|
boolean flag = this.judgmentSignIsHavePackage(distributionSignfor.getReservationId()); |
|
|
|
|
if (!flag){ |
|
|
|
|
distributionAsyncService.releaseSource(distributionSignfor.getReservationId(), myCurrentWarehouse.getId()); |
|
|
|
|
} |
|
|
|
|
//维护配送状态
|
|
|
|
|
distributionDeliveryListService.maintenanceDeliveryInfo(distributionSignfor.getDeliveryId()); |
|
|
|
|
|
|
|
|
|
return R.success("操作成功"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|