|
|
|
@ -1127,9 +1127,9 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
//卸车数大于实际装车数
|
|
|
|
|
throw new CustomerException(405,"零担订单"+orderCode+"卸车件数已大于实际装车件数,请去调整补录"); |
|
|
|
|
}else { |
|
|
|
|
if(unloadNum < realNum){ |
|
|
|
|
distributionStockArticleClient.addHandQuantity(stockArticleEntity.getId(),realNum-unloadNum); |
|
|
|
|
} |
|
|
|
|
// if(unloadNum < realNum){
|
|
|
|
|
// distributionStockArticleClient.addHandQuantity(stockArticleEntity.getId(),realNum-unloadNum);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
DistributionStockArticleEntity newStockArticleEntity = distributionStockArticleClient.findStockArticleByOrderCodeAndWarehouseId(orderCode, warehouseId); |
|
|
|
|
if (Objects.isNull(newStockArticleEntity)) { |
|
|
|
@ -1814,7 +1814,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
String enterTimeStartStr = loadCarsDTO.getEnterTimeStartStr(); |
|
|
|
|
String enterTimeEndStr = loadCarsDTO.getEnterTimeEndStr(); |
|
|
|
|
loadCarsDTO.setEnterTimeStart(CommonUtil.getStartByDateStr(enterTimeStartStr)); |
|
|
|
|
loadCarsDTO.setEnterTimeEnd(CommonUtil.getStartByDateStr(enterTimeEndStr)); |
|
|
|
|
loadCarsDTO.setEnterTimeEnd(CommonUtil.getEndByDateStr(enterTimeEndStr)); |
|
|
|
|
|
|
|
|
|
IPage<CarsLoadAllOrderVO> pageList = baseMapper.findAllOrderList(page, loadCarsDTO); |
|
|
|
|
return R.data(pageList); |
|
|
|
@ -4554,7 +4554,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
// carsLoadAsyncService.dealwithAfterAbnormalPackage(e.getOrderPackageCode(), warehouseId, warehouseName, carsLoadEntity.getCarsNo(), userId, deptId, nickName);
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
String content = "包件在 " + warehouseName + "卸车,卸车方式:" + IncomingTypeEnum.getValue(incomingType); |
|
|
|
|
String content = "包件在 " + warehouseName + "卸车,车次号:"+carsNo+",卸车方式:" + IncomingTypeEnum.getValue(incomingType); |
|
|
|
|
|
|
|
|
|
List<WarehousePackageTrackLogEntity> list = new ArrayList<>(); |
|
|
|
|
orderPackageCodes.forEach(orderPackageCode -> { |
|
|
|
@ -5579,7 +5579,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
warehousePackageTrackLogEntity.setWarehouseId(warehouseId); |
|
|
|
|
warehousePackageTrackLogEntity.setWarehouseName(warehouseName); |
|
|
|
|
warehousePackageTrackLogEntity.setWorkNode(WorkNodeEnums.INITIAL_WAREHOUSE_LOADING.getCode()); |
|
|
|
|
String content = "包件在 " + warehouseName + "手动批量装车,配载计划目的仓 " + carsLoadScanEntity.getFinalNodeName() + ",数据来源仓库 " + warehouseName; |
|
|
|
|
String content = "包件在 " + warehouseName + "手动批量装车,车次号:"+carsNo+",配载计划目的仓 " + carsLoadScanEntity.getFinalNodeName() + ",数据来源仓库 " + warehouseName; |
|
|
|
|
warehousePackageTrackLogEntity.setContent(content); |
|
|
|
|
warehousePackageTrackLogEntity.setOperator(nickName); |
|
|
|
|
addPackageTrackLogList.add(warehousePackageTrackLogEntity); |
|
|
|
@ -6478,7 +6478,9 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
|
|
|
|
|
String loadStatus = trunklineCarsLoadVO.getLoadStatus(); |
|
|
|
|
trunklineCarsLoadVO.setLoadStatus(DictBizCache.getValue(DictBizConstant.CARS_LOAD_STATUS, loadStatus)); |
|
|
|
|
trunklineCarsLoadVO.setStockCarsNum(realLoadingNumber - unloadNumber); |
|
|
|
|
int i = realLoadingNumber - unloadNumber; |
|
|
|
|
if(i < 0) i = 0; |
|
|
|
|
trunklineCarsLoadVO.setStockCarsNum(i); |
|
|
|
|
trunklineCarsLoadVO.setLoadScanOrderList(loadScanOrderList); |
|
|
|
|
trunklineCarsLoadVO.setZeroList(zeroList); |
|
|
|
|
trunklineCarsLoadVO.setExceptionList(exceptionList); |
|
|
|
|