|
|
|
@ -449,6 +449,11 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
trunklineCarsOrderService.updateBatchById(ls); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
carsLoadEntity.setCustomerNum(CollUtil.isEmpty(list)?0:list.size()); |
|
|
|
|
carsLoadEntity.setIsCustomer(CollUtil.isEmpty(list)?"2":"1"); |
|
|
|
|
|
|
|
|
|
updateById(carsLoadEntity); |
|
|
|
|
|
|
|
|
|
// for (TrunklineLoadSignOrderEntity trunklineLoadSignOrderEntity : list) {
|
|
|
|
|
// Long signOrderId = trunklineLoadSignOrderEntity.getId();
|
|
|
|
|
// String mallName = trunklineLoadSignOrderEntity.getMallName();
|
|
|
|
@ -993,6 +998,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
|
|
|
|
|
//无装车记录异常日志记录
|
|
|
|
|
try { |
|
|
|
|
// carsLoadAsyncService.
|
|
|
|
|
|
|
|
|
|
carsLoadAsyncService.abnormalListUnloadCheckByLoadIdAndWarehouseId(loadId, warehouseId, currentCarsLoadLineEntity.getNodeName(), AuthUtil.getTenantId(), AuthUtil.getUserId(), AuthUtil.getNickName(), Func.firstLong(AuthUtil.getDeptId())); |
|
|
|
|
List<String> orderPackageCodes = trunklineCarsLoadScanService.findUnloadByLoadIdAndWarehouseId(loadId, warehouseId); |
|
|
|
|
|
|
|
|
@ -4512,6 +4519,41 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
return R.success("上传成功"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public R findWarehouseUnloadReport(LoadCarsDTO loadCarsDTO) { |
|
|
|
|
Long loadId = loadCarsDTO.getLoadId(); |
|
|
|
|
Long warehouseId = loadCarsDTO.getWarehouseId(); |
|
|
|
|
|
|
|
|
|
TrunklineCarsLoadEntity carsLoadEntity = baseMapper.selectById(loadId); |
|
|
|
|
if (Objects.isNull(carsLoadEntity)) { |
|
|
|
|
log.warn("##############findWarehouseUnloadReport: 找不到对应的配载信息"); |
|
|
|
|
return R.fail(405,"找不到对应的配载信息"); |
|
|
|
|
} |
|
|
|
|
String carsNo = carsLoadEntity.getCarsNo(); |
|
|
|
|
|
|
|
|
|
TrunklineCarsLoadLineEntity carsLoadLineEntity = trunklineCarsLoadLineService.findEntityByLoadIdAndNodeId(loadId, warehouseId); |
|
|
|
|
//判空
|
|
|
|
|
if (Objects.isNull(carsLoadLineEntity)) { |
|
|
|
|
log.warn("##############findWarehouseUnloadReport: 找不到对应的配载节点信息"); |
|
|
|
|
return R.fail(405,"找不到对应的配载节点信息"); |
|
|
|
|
} |
|
|
|
|
String nodeName = carsLoadLineEntity.getNodeName(); |
|
|
|
|
Integer unloadReportStatus = carsLoadLineEntity.getUnloadReportStatus(); |
|
|
|
|
if(unloadReportStatus.equals(0)){ |
|
|
|
|
log.warn("##############findWarehouseUnloadReport: {} 还未卸车确认",nodeName); |
|
|
|
|
return R.fail(405,nodeName+"还未卸车确认"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Map<String,String> map = new HashMap<>(); |
|
|
|
|
map.put("one",carsLoadLineEntity.getReportOne()); |
|
|
|
|
map.put("two",carsLoadLineEntity.getReportTwo()); |
|
|
|
|
|
|
|
|
|
Map<String,Integer> abnormalRecord = abnormalRecordClient.findListByCarsNoAndUpWarehouseId(carsNo,warehouseId); |
|
|
|
|
map.put("three","当前待处理异常 "+abnormalRecord.get("dealwithNum")+" 条、已处理异常 "+abnormalRecord.get("noDealwithNum")+" 条"); |
|
|
|
|
|
|
|
|
|
return R.data(map); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public R loadingTrayInfo(LoadCarsDTO loadCarsDTO) { |
|
|
|
|
log.info("##############loadingTrayInfo: 查询托盘的货物信息"); |
|
|
|
@ -4833,6 +4875,11 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
return R.fail(405, "配载计划信息不存在"); |
|
|
|
|
} |
|
|
|
|
String loadCode = carsLoadEntity.getCarsNo(); |
|
|
|
|
String loadStatus = carsLoadEntity.getLoadStatus(); |
|
|
|
|
if("80".equals(loadStatus)){ |
|
|
|
|
log.warn("##############unloadPackage: 配载计划已经卸车确认 loadId={}", loadId); |
|
|
|
|
return R.fail(405, "配载计划已经卸车确认"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TrunklineCarsLoadLineEntity carsLoadLineEntity = trunklineCarsLoadLineService.findEntityByLoadIdAndNodeId(loadId, warehouseId); |
|
|
|
|
if (Objects.isNull(carsLoadLineEntity)) { |
|
|
|
@ -5234,6 +5281,11 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String loadCode = carsLoadEntity.getCarsNo(); |
|
|
|
|
String loadStatus = carsLoadEntity.getLoadStatus(); |
|
|
|
|
if("80".equals(loadStatus)){ |
|
|
|
|
log.warn("##############unloadZero: 配载计划已经卸车确认 loadStatus={}", loadStatus); |
|
|
|
|
return R.fail(405, "配载计划已经卸车确认"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
BasicdataWarehouseEntity basicdataWarehouseEntity = basicdataWarehouseClient.getEntityWarehouseId(warehouseId); |
|
|
|
|
if (Objects.isNull(basicdataWarehouseEntity)) { |
|
|
|
|