|
|
|
@ -2188,7 +2188,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
carsLoadEntity.setLoadStatus("90"); |
|
|
|
|
updateById(carsLoadEntity); |
|
|
|
|
|
|
|
|
|
trunklineCarsLoadScanService.updateScanStatusByLoadId(loadId, "3", new Date()); |
|
|
|
|
trunklineCarsLoadScanService.updateScanStatusByLoadId(loadId, "3", new Date(),AuthUtil.getNickName()); |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
trunklineCarsLoadLogService.saveLog(carsLoadEntity, carsLoadLineEntity, CarsLoadLogTypeConstant.TRIPARTITE_TRANSFER_SIGN.getValue()); |
|
|
|
@ -2226,13 +2226,16 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
throw new CustomerException(400, "暂未有权限进行操作"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TrunklineCarsLoadLineEntity carsLoadLine = trunklineCarsLoadLineService.findStartNodeByLoadId(loadId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
carsLoadEntity.setIsSettlement("2"); |
|
|
|
|
carsLoadEntity.setSettlementValue(settlementValue); |
|
|
|
|
carsLoadEntity.setSettlementPerson(AuthUtil.getUserName()); |
|
|
|
|
carsLoadEntity.setSettlementPerson(AuthUtil.getNickName()); |
|
|
|
|
carsLoadEntity.setSettlementPersonId(AuthUtil.getUserId()); |
|
|
|
|
updateById(carsLoadEntity); |
|
|
|
|
|
|
|
|
|
trunklineCarsLoadLogService.saveLog(carsLoadEntity, null, CarsLoadLogTypeConstant.TRIPARTITE_TRANSFER_SETTLEMENT.getValue()); |
|
|
|
|
trunklineCarsLoadLogService.saveLog(carsLoadEntity, carsLoadLine, CarsLoadLogTypeConstant.TRIPARTITE_TRANSFER_SETTLEMENT.getValue()); |
|
|
|
|
|
|
|
|
|
return R.success("结算成功"); |
|
|
|
|
} |
|
|
|
@ -2255,7 +2258,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public R loadingScan(Long loadId, Long warehouseId, String orderPackageCode, String trayCode, String remark) { |
|
|
|
|
public R loadingScan(Long loadId, Long warehouseId, String orderPackageCode, String trayCode, String remark) { |
|
|
|
|
log.info("#################loadingScan: 装车扫描"); |
|
|
|
|
|
|
|
|
|
TrunklineCarsLoadEntity carsLoadEntity = baseMapper.selectById(loadId); |
|
|
|
@ -2470,6 +2473,11 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
isAbnormal = 1; |
|
|
|
|
remark = "有数据,在本仓,不在配载计划中,异常装车"; |
|
|
|
|
audio = "无计划装车"; |
|
|
|
|
String loadType = carsLoadEntity.getLoadType(); |
|
|
|
|
if("4".equals(loadType)){ |
|
|
|
|
carsLoadScanEntity.setFinalNodeId(warehouseId); |
|
|
|
|
carsLoadScanEntity.setFinalNodeName(warehouseName); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
//有计划
|
|
|
|
|
Integer planNum = carsOrderEntity.getPlanNum(); |
|
|
|
@ -2491,8 +2499,14 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
if (!Objects.isNull(finalNode)) { |
|
|
|
|
finalNodeName = finalNode.getName(); |
|
|
|
|
} |
|
|
|
|
carsLoadScanEntity.setFinalNodeId(finalNodeId); |
|
|
|
|
carsLoadScanEntity.setFinalNodeName(finalNodeName); |
|
|
|
|
String loadType = carsLoadEntity.getLoadType(); |
|
|
|
|
if("4".equals(loadType)){ |
|
|
|
|
carsLoadScanEntity.setFinalNodeId(warehouseId); |
|
|
|
|
carsLoadScanEntity.setFinalNodeName(warehouseName); |
|
|
|
|
}else{ |
|
|
|
|
carsLoadScanEntity.setFinalNodeId(finalNodeId); |
|
|
|
|
carsLoadScanEntity.setFinalNodeName(finalNodeName); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
distributionParcelListClient.updateOrderPackageCodeById(packageId, "60"); |
|
|
|
|
distributionStockArticleClient.submitHandleNumByOrderId(1, articleId); |
|
|
|
@ -3706,6 +3720,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
carsLoadScanEntity.setUnloadNodeName(warehouseName); |
|
|
|
|
carsLoadScanEntity.setUnloadNum(carsLoadScanEntity.getNum()); |
|
|
|
|
carsLoadScanEntity.setUnloadTime(new Date()); |
|
|
|
|
carsLoadScanEntity.setUnloadUserName(AuthUtil.getNickName()); |
|
|
|
|
carsLoadScanEntity.setScanStatus("2"); |
|
|
|
|
trayCode = carsLoadScanEntity.getTrayCode(); |
|
|
|
|
if (!StringUtil.isBlank(trayCode)) { |
|
|
|
@ -5298,10 +5313,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
carsLoadEntity.setSignTime(date); |
|
|
|
|
carsLoadEntity.setLoadStatus("90"); |
|
|
|
|
} else { |
|
|
|
|
if (num == 1) { |
|
|
|
|
carsLoadEntity.setSignTime(date); |
|
|
|
|
carsLoadEntity.setLoadStatus("91"); |
|
|
|
|
} |
|
|
|
|
carsLoadEntity.setSignTime(date); |
|
|
|
|
carsLoadEntity.setLoadStatus("91"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
updateById(carsLoadEntity); |
|
|
|
|