|
|
|
@ -1481,6 +1481,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
carsLoadEntity.setPlanLoadingNumber(0); |
|
|
|
|
carsLoadEntity.setRealLoadingNumber(0); |
|
|
|
|
carsLoadEntity.setUnloadNumber(0); |
|
|
|
|
carsLoadEntity.setStockNumber(0); |
|
|
|
|
carsLoadEntity.setAbnormalNum(0); |
|
|
|
|
carsLoadEntity.setNowWarehouseId(warehouseId); |
|
|
|
|
carsLoadEntity.setIsSettlement("1"); |
|
|
|
@ -1579,15 +1580,17 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
trunklineCarsLoadLineService.updatePlanLoadingNumberByLoadLineId(planNum, loadLineId); |
|
|
|
|
} |
|
|
|
|
carsLoadEntity.setPlanLoadingNumber(loadPlanNum); |
|
|
|
|
updateById(carsLoadEntity); |
|
|
|
|
// updateById(carsLoadEntity);
|
|
|
|
|
|
|
|
|
|
//装车 卸车数量
|
|
|
|
|
Integer realLoadingNum = trunklineCarsLoadScanService.findNumByLoadId(loadId);//配载计划实际装车数量
|
|
|
|
|
Integer realUnloadingNum = trunklineCarsLoadScanService.findUnloadNumByLoadId(loadId);//配载计划实际卸车数量
|
|
|
|
|
Integer stockCarNum = trunklineCarsLoadScanService.findStockNumByLoadId(loadId);//配载计划在车件数
|
|
|
|
|
Integer abnormalNum = trunklineCarsLoadScanService.findAbnormalNumByLoadId(loadId);//配载计划装车异常数量
|
|
|
|
|
// Integer unloadAbnormalNum = trunklineCarsUnloadLogService.findAbnormalNumByLoadId(loadId);//配载计划卸车异常数量
|
|
|
|
|
carsLoadEntity.setRealLoadingNumber(realLoadingNum); |
|
|
|
|
carsLoadEntity.setUnloadNumber(realUnloadingNum); |
|
|
|
|
carsLoadEntity.setStockNumber(stockCarNum); |
|
|
|
|
carsLoadEntity.setAbnormalNum(abnormalNum); |
|
|
|
|
updateById(carsLoadEntity); |
|
|
|
|
|
|
|
|
@ -4154,7 +4157,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
String value = DictBizCache.getValue(DictBizConstant.CARS_LOAD_STATUS, loadStatus); |
|
|
|
|
Integer realLoadingNumber = trunklineCarsLoadVO.getRealLoadingNumber(); |
|
|
|
|
Integer unloadNumber = trunklineCarsLoadVO.getUnloadNumber(); |
|
|
|
|
trunklineCarsLoadVO.setRealLoadingNumber(realLoadingNumber - unloadNumber); |
|
|
|
|
Integer stockCarsNum = trunklineCarsLoadVO.getStockNumber(); |
|
|
|
|
trunklineCarsLoadVO.setRealLoadingNumber(stockCarsNum); |
|
|
|
|
trunklineCarsLoadVO.setLoadStatus(value); |
|
|
|
|
} |
|
|
|
|
pageList.setRecords(records); |
|
|
|
@ -8127,11 +8131,11 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
|
|
|
|
|
String loadStatus = trunklineCarsLoadVO.getLoadStatus(); |
|
|
|
|
trunklineCarsLoadVO.setLoadStatus(DictBizCache.getValue(DictBizConstant.CARS_LOAD_STATUS, loadStatus)); |
|
|
|
|
int i = realLoadingNumber - unloadNumber; |
|
|
|
|
if(i < 0) { |
|
|
|
|
i = 0; |
|
|
|
|
} |
|
|
|
|
trunklineCarsLoadVO.setStockCarsNum(i); |
|
|
|
|
// int i = realLoadingNumber - unloadNumber;
|
|
|
|
|
// if(i < 0) {
|
|
|
|
|
// i = 0;
|
|
|
|
|
// }
|
|
|
|
|
trunklineCarsLoadVO.setStockCarsNum(carsLoadEntity.getStockNumber()); |
|
|
|
|
trunklineCarsLoadVO.setLoadScanOrderList(loadScanOrderList); |
|
|
|
|
trunklineCarsLoadVO.setZeroList(zeroList); |
|
|
|
|
trunklineCarsLoadVO.setExceptionList(exceptionList); |
|
|
|
@ -8489,8 +8493,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
|
|
|
|
|
Integer realLoadingNumber = trunklineCarsLoadVO.getRealLoadingNumber(); |
|
|
|
|
Integer unloadNumber = trunklineCarsLoadVO.getUnloadNumber(); |
|
|
|
|
int stockCarNumber = realLoadingNumber - unloadNumber; |
|
|
|
|
trunklineCarsLoadVO.setRealLoadingNumber(stockCarNumber<0?0:stockCarNumber); |
|
|
|
|
Integer stockCarNumber = trunklineCarsLoadVO.getStockNumber(); |
|
|
|
|
trunklineCarsLoadVO.setRealLoadingNumber(stockCarNumber); |
|
|
|
|
trunklineCarsLoadVO.setTotalLoadingNum(realLoadingNumber); |
|
|
|
|
} |
|
|
|
|
pageList.setRecords(records); |
|
|
|
|