|
|
@ -479,8 +479,9 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
log.error("同步工厂数据失败", e); |
|
|
|
log.error("同步工厂数据失败", e); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//TODO 暂时注释
|
|
|
|
//发送干线发车广播
|
|
|
|
//发送干线发车广播
|
|
|
|
carsLoadAsyncService.sendReportCarsLoadStartFanout(AuthUtil.getUserId(),AuthUtil.getNickName(),warehouseId,warehouseName,carsLoadEntity); |
|
|
|
// carsLoadAsyncService.sendReportCarsLoadStartFanout(AuthUtil.getUserId(),AuthUtil.getNickName(),warehouseId,warehouseName,carsLoadEntity);
|
|
|
|
|
|
|
|
|
|
|
|
log.info("##############startCarByLoadId: 发车成功 loadId={} startCarType={} warehouseId={}", loadId, startCarType, warehouseId); |
|
|
|
log.info("##############startCarByLoadId: 发车成功 loadId={} startCarType={} warehouseId={}", loadId, startCarType, warehouseId); |
|
|
|
} |
|
|
|
} |
|
|
@ -912,8 +913,9 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
log.error("#############cancelStartCarByLoadId: 处理取消节点签收单 和 发车数量失败", e); |
|
|
|
log.error("#############cancelStartCarByLoadId: 处理取消节点签收单 和 发车数量失败", e); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//TODO 暂时注释
|
|
|
|
//发送取消发车广播
|
|
|
|
//发送取消发车广播
|
|
|
|
carsLoadAsyncService.sendReportCancleStartData(AuthUtil.getNickName(),AuthUtil.getUserId(),warehouseId,warehouseName,carsLoadEntity); |
|
|
|
// carsLoadAsyncService.sendReportCancleStartData(AuthUtil.getNickName(),AuthUtil.getUserId(),warehouseId,warehouseName,carsLoadEntity);
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1462,8 +1464,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
Long scanId = carsLoadScanEntity.getId(); |
|
|
|
Long scanId = carsLoadScanEntity.getId(); |
|
|
|
|
|
|
|
|
|
|
|
List<TrunklineScanZeroDetailVO> list = mapByScanId.get(scanId); |
|
|
|
List<TrunklineScanZeroDetailVO> list = mapByScanId.get(scanId); |
|
|
|
|
|
|
|
//TODO 暂时注释
|
|
|
|
carsLoadAsyncService.sendReportZeroPackageUnloadData(AuthUtil.getUserId(), AuthUtil.getNickName(), warehouseId, warehouseEntity.getName(),list,carsLoadScanEntity,carsLoadEntity); |
|
|
|
// carsLoadAsyncService.sendReportZeroPackageUnloadData(AuthUtil.getUserId(), AuthUtil.getNickName(), warehouseId, warehouseEntity.getName(),list,carsLoadScanEntity,carsLoadEntity);
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -5383,8 +5385,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
updateEntity.setId(scanId); |
|
|
|
updateEntity.setId(scanId); |
|
|
|
updateEntity.setUnloadCheck(1); |
|
|
|
updateEntity.setUnloadCheck(1); |
|
|
|
updateList.add(updateEntity); |
|
|
|
updateList.add(updateEntity); |
|
|
|
|
|
|
|
//TODO 暂时注释
|
|
|
|
carsLoadAsyncService.sendReportZeroPackageUnloadData(AuthUtil.getUserId(), AuthUtil.getNickName(), warehouseId, warehouseName,list,carsLoadScanEntity,carsLoadEntity); |
|
|
|
// carsLoadAsyncService.sendReportZeroPackageUnloadData(AuthUtil.getUserId(), AuthUtil.getNickName(), warehouseId, warehouseName,list,carsLoadScanEntity,carsLoadEntity);
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -7841,6 +7843,13 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
log.error("推送卸车失败{}", e); |
|
|
|
log.error("推送卸车失败{}", e); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//把newParcelListEntities中所有元素的orderPackageCode放入一个List
|
|
|
|
|
|
|
|
List<String> packageCodes = newParcelListEntities.stream().map(DistributionParcelListEntity::getOrderPackageCode).collect(Collectors.toList()); |
|
|
|
|
|
|
|
//TODO 暂时注释
|
|
|
|
|
|
|
|
//发送报表模块卸车数据
|
|
|
|
|
|
|
|
// carsLoadAsyncService.sendReportPackageUnloadData(AuthUtil.getNickName(),AuthUtil.getUserId(),warehouseId,warehouseName,carsLoadEntity,packageCodes);
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
trunklineCarsLoadScanService.updateBatchById(updateScanEntityList); |
|
|
|
trunklineCarsLoadScanService.updateBatchById(updateScanEntityList); |
|
|
@ -8652,6 +8661,12 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
log.info("推送工厂数据:{}", JSONUtil.toJsonStr(msg)); |
|
|
|
log.info("推送工厂数据:{}", JSONUtil.toJsonStr(msg)); |
|
|
|
factoryDataMessageSender.sendNodeDataByBrand(msg); |
|
|
|
factoryDataMessageSender.sendNodeDataByBrand(msg); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<String> orderPackageCodeList = new ArrayList<>(); |
|
|
|
|
|
|
|
orderPackageCodeList.add(orderPackageCode); |
|
|
|
|
|
|
|
//TODO 暂时注释
|
|
|
|
|
|
|
|
// carsLoadAsyncService.sendReportPackageSignData(AuthUtil.getNickName(), AuthUtil.getUserId(), warehouseId, warehouseName, carsLoadEntity, orderPackageCodeList);
|
|
|
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("推送签收数据给工厂失败 {}", e); |
|
|
|
log.error("推送签收数据给工厂失败 {}", e); |
|
|
|
} |
|
|
|
} |
|
|
@ -8695,11 +8710,18 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
Long loadId = signOrderEntity.getLoadId(); |
|
|
|
Long loadId = signOrderEntity.getLoadId(); |
|
|
|
Long warehouseId = signOrderEntity.getWarehouseId(); |
|
|
|
Long warehouseId = signOrderEntity.getWarehouseId(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TrunklineCarsLoadEntity carsLoadEntity = baseMapper.selectById(loadId); |
|
|
|
|
|
|
|
if(Objects.isNull(carsLoadEntity)){ |
|
|
|
|
|
|
|
log.warn("##############signZeroOrder: 配载信息不存在 loadId={}", loadId); |
|
|
|
|
|
|
|
return R.fail(405, "配载信息不存在"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
BasicdataWarehouseEntity warehouseEntity = basicdataWarehouseClient.getEntityWarehouseId(warehouseId); |
|
|
|
BasicdataWarehouseEntity warehouseEntity = basicdataWarehouseClient.getEntityWarehouseId(warehouseId); |
|
|
|
if(Objects.isNull(warehouseEntity)){ |
|
|
|
if(Objects.isNull(warehouseEntity)){ |
|
|
|
log.warn("##############signZeroOrder: 仓库信息不存在 warehouseId={}", warehouseId); |
|
|
|
log.warn("##############signZeroOrder: 仓库信息不存在 warehouseId={}", warehouseId); |
|
|
|
return R.fail(405, "仓库信息不存在"); |
|
|
|
return R.fail(405, "仓库信息不存在"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
String warehouseName = warehouseEntity.getName(); |
|
|
|
|
|
|
|
|
|
|
|
TrunklineCarsLoadScanEntity carsLoadScanEntity = trunklineCarsLoadScanService.getById(carsLoadScanId); |
|
|
|
TrunklineCarsLoadScanEntity carsLoadScanEntity = trunklineCarsLoadScanService.getById(carsLoadScanId); |
|
|
|
if (Objects.isNull(carsLoadScanEntity)) { |
|
|
|
if (Objects.isNull(carsLoadScanEntity)) { |
|
|
@ -8766,6 +8788,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
updateNumByLoadId(loadId); |
|
|
|
updateNumByLoadId(loadId); |
|
|
|
//重新计算签收单的数量
|
|
|
|
//重新计算签收单的数量
|
|
|
|
updateSignOrderNumBySignOrderId(signOrderId); |
|
|
|
updateSignOrderNumBySignOrderId(signOrderId); |
|
|
|
|
|
|
|
//TODO 暂时注释
|
|
|
|
|
|
|
|
// carsLoadAsyncService.sendReportZeroPackageSignData(AuthUtil.getUserId(), AuthUtil.getNickName(), warehouseId, warehouseName, updateScanZeroDetailList, carsLoadScanEntity, carsLoadEntity);
|
|
|
|
|
|
|
|
|
|
|
|
// Long waybillId = carsLoadScanEntity.getWaybillId();
|
|
|
|
// Long waybillId = carsLoadScanEntity.getWaybillId();
|
|
|
|
// if(!Objects.isNull(waybillId)){
|
|
|
|
// if(!Objects.isNull(waybillId)){
|
|
|
@ -8819,6 +8843,15 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
String warehouseName = loadCarsDTO.getWarehouseName(); |
|
|
|
String warehouseName = loadCarsDTO.getWarehouseName(); |
|
|
|
|
|
|
|
|
|
|
|
List<TrunklineCarsLoadScanVO> list = trunklineCarsLoadScanService.findListHasSignOrderIdByIds(loadScanIds); |
|
|
|
List<TrunklineCarsLoadScanVO> list = trunklineCarsLoadScanService.findListHasSignOrderIdByIds(loadScanIds); |
|
|
|
|
|
|
|
//把list中所有的loadId放入一个List
|
|
|
|
|
|
|
|
List<Long> loadIdList = list.stream().map(TrunklineCarsLoadScanVO::getLoadId).collect(Collectors.toList()); |
|
|
|
|
|
|
|
QueryWrapper<TrunklineCarsLoadEntity> queryWrapper = new QueryWrapper<>(); |
|
|
|
|
|
|
|
queryWrapper.in("id", loadIdList); |
|
|
|
|
|
|
|
List<TrunklineCarsLoadEntity> trunklineCarsLoadEntities = baseMapper.selectList(queryWrapper); |
|
|
|
|
|
|
|
//trunklineCarsLoadEntities转化为以id为key的Map
|
|
|
|
|
|
|
|
Map<Long, TrunklineCarsLoadEntity> trunklineCarsLoadMap = trunklineCarsLoadEntities.stream().collect(Collectors.toMap(TrunklineCarsLoadEntity::getId, Function.identity())); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<DistributionParcelListEntity> parcelListEntityList = trunklineCarsLoadScanService.findParceListByCarsLoadScanIds(loadScanIds); |
|
|
|
List<DistributionParcelListEntity> parcelListEntityList = trunklineCarsLoadScanService.findParceListByCarsLoadScanIds(loadScanIds); |
|
|
|
//把parcelListEntityList通过orderPackageCode分组
|
|
|
|
//把parcelListEntityList通过orderPackageCode分组
|
|
|
|
Map<String, List<DistributionParcelListEntity>> parcelListMap = parcelListEntityList.stream().collect(Collectors.groupingBy(DistributionParcelListEntity::getOrderPackageCode)); |
|
|
|
Map<String, List<DistributionParcelListEntity>> parcelListMap = parcelListEntityList.stream().collect(Collectors.groupingBy(DistributionParcelListEntity::getOrderPackageCode)); |
|
|
@ -8845,6 +8878,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
// TrunklineCarsLoadEntity carsLoadEntity = baseMapper.selectById(loadId);
|
|
|
|
// TrunklineCarsLoadEntity carsLoadEntity = baseMapper.selectById(loadId);
|
|
|
|
List<TrunklineCarsLoadScanVO> trunklineCarsLoadScanVOS = map.get(e);//该签收单对应的包件
|
|
|
|
List<TrunklineCarsLoadScanVO> trunklineCarsLoadScanVOS = map.get(e);//该签收单对应的包件
|
|
|
|
trunklineCarsLoadScanVOS.forEach(t -> { |
|
|
|
trunklineCarsLoadScanVOS.forEach(t -> { |
|
|
|
|
|
|
|
Long loadId = t.getLoadId(); |
|
|
|
TrunklineCarsLoadScanEntity entity = new TrunklineCarsLoadScanEntity(); |
|
|
|
TrunklineCarsLoadScanEntity entity = new TrunklineCarsLoadScanEntity(); |
|
|
|
BeanUtil.copy(t, entity); |
|
|
|
BeanUtil.copy(t, entity); |
|
|
|
entity.setScanStatus("3"); |
|
|
|
entity.setScanStatus("3"); |
|
|
@ -8858,25 +8892,42 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
Integer type = entity.getType(); |
|
|
|
Integer type = entity.getType(); |
|
|
|
Long carsLoadScanId = t.getCarsLoadScanId(); |
|
|
|
Long carsLoadScanId = t.getCarsLoadScanId(); |
|
|
|
if (type.equals(1)) { |
|
|
|
if (type.equals(1)) { |
|
|
|
|
|
|
|
List<String> orderPackageCodeList = new ArrayList<>(); |
|
|
|
String scanCode = entity.getScanCode(); |
|
|
|
String scanCode = entity.getScanCode(); |
|
|
|
List<DistributionParcelListEntity> parcelList = parcelListMap.get(scanCode); |
|
|
|
List<DistributionParcelListEntity> parcelList = parcelListMap.get(scanCode); |
|
|
|
if (!Objects.isNull(parcelList)) { |
|
|
|
if (!Objects.isNull(parcelList)) { |
|
|
|
parcelList.forEach(p -> { |
|
|
|
parcelList.forEach(p -> { |
|
|
|
p.setOrderPackageStatus("70"); |
|
|
|
p.setOrderPackageStatus("70"); |
|
|
|
updateParcelList.add(p); |
|
|
|
updateParcelList.add(p); |
|
|
|
|
|
|
|
orderPackageCodeList.add(p.getOrderPackageCode()); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
orderPackageCodes.add(entity.getScanCode()); |
|
|
|
orderPackageCodes.add(entity.getScanCode()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TrunklineCarsLoadEntity carsLoadEntity = trunklineCarsLoadMap.get(loadId); |
|
|
|
|
|
|
|
//TODO 暂时注释
|
|
|
|
|
|
|
|
// carsLoadAsyncService.sendReportPackageSignData(AuthUtil.getNickName(),AuthUtil.getUserId() , warehouseId, warehouseName, carsLoadEntity, orderPackageCodeList);
|
|
|
|
|
|
|
|
|
|
|
|
}else if(type.equals(2)){ |
|
|
|
}else if(type.equals(2)){ |
|
|
|
//零担
|
|
|
|
//零担
|
|
|
|
List<TrunklineScanZeroDetailVO> zeroDetailVOList = scanZeroDetailService.findListByCarsLoadScanId(carsLoadScanId); |
|
|
|
List<TrunklineScanZeroDetailVO> zeroDetailVOList = scanZeroDetailService.findListByCarsLoadScanId(carsLoadScanId); |
|
|
|
|
|
|
|
List<TrunklineScanZeroDetailEntity> nowList = new ArrayList<>(); |
|
|
|
zeroDetailVOList.forEach(p -> { |
|
|
|
zeroDetailVOList.forEach(p -> { |
|
|
|
TrunklineScanZeroDetailEntity scanZeroDetailEntity = new TrunklineScanZeroDetailEntity(); |
|
|
|
TrunklineScanZeroDetailEntity scanZeroDetailEntity = new TrunklineScanZeroDetailEntity(); |
|
|
|
scanZeroDetailEntity.setId(p.getId()); |
|
|
|
scanZeroDetailEntity.setId(p.getId()); |
|
|
|
|
|
|
|
scanZeroDetailEntity.setPackageId(p.getPackageId()); |
|
|
|
|
|
|
|
scanZeroDetailEntity.setGoodsId(p.getGoodsId()); |
|
|
|
|
|
|
|
scanZeroDetailEntity.setGoodsName(p.getGoodsName()); |
|
|
|
|
|
|
|
scanZeroDetailEntity.setLoadingNum(p.getLoadingNum()); |
|
|
|
scanZeroDetailEntity.setUnloadNum(p.getLoadingNum()); |
|
|
|
scanZeroDetailEntity.setUnloadNum(p.getLoadingNum()); |
|
|
|
updateZerpPackageList.add(scanZeroDetailEntity); |
|
|
|
updateZerpPackageList.add(scanZeroDetailEntity); |
|
|
|
|
|
|
|
nowList.add(scanZeroDetailEntity); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TrunklineCarsLoadEntity carsLoadEntity = trunklineCarsLoadMap.get(loadId); |
|
|
|
|
|
|
|
//TODO 暂时注释
|
|
|
|
|
|
|
|
// carsLoadAsyncService.sendReportZeroPackageSignData(AuthUtil.getUserId(), AuthUtil.getNickName(), warehouseId, warehouseName, nowList, entity, carsLoadEntity);
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
updateCarsLoadScanList.add(entity); |
|
|
|
updateCarsLoadScanList.add(entity); |
|
|
|
loadIds.add(entity.getLoadId()); |
|
|
|
loadIds.add(entity.getLoadId()); |
|
|
@ -9569,6 +9620,39 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
} |
|
|
|
} |
|
|
|
// 推送签收数据给工厂
|
|
|
|
// 推送签收数据给工厂
|
|
|
|
sendFactorySignTriparite(warehouseId, orderPackageCodes, warehouseEntity); |
|
|
|
sendFactorySignTriparite(warehouseId, orderPackageCodes, warehouseEntity); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<TrunklineCarsLoadScanEntity> loadScanEntityList = trunklineCarsLoadScanService.findListByIds(loadScanIds); |
|
|
|
|
|
|
|
//把loadScanEntityList中所有元素通过type进行分组
|
|
|
|
|
|
|
|
Map<Integer, List<TrunklineCarsLoadScanEntity>> map = loadScanEntityList.stream().collect(Collectors.groupingBy(TrunklineCarsLoadScanEntity::getType)); |
|
|
|
|
|
|
|
map.keySet().forEach(type -> { |
|
|
|
|
|
|
|
List<TrunklineCarsLoadScanEntity> trunklineCarsLoadScanEntities = map.get(type); |
|
|
|
|
|
|
|
if(type == 1){ |
|
|
|
|
|
|
|
//定制
|
|
|
|
|
|
|
|
//把trunklineCarsLoadScanEntities中所有scanCode放入一个List
|
|
|
|
|
|
|
|
List<String> scanCodes = trunklineCarsLoadScanEntities.stream().map(TrunklineCarsLoadScanEntity::getScanCode).collect(Collectors.toList()); |
|
|
|
|
|
|
|
//TODO 暂时注释
|
|
|
|
|
|
|
|
// carsLoadAsyncService.sendReportPackageSignData(AuthUtil.getNickName(),AuthUtil.getUserId(),warehouseId,warehouseName,carsLoadEntity,scanCodes);
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
trunklineCarsLoadScanEntities.forEach(carsLoadScanEntity -> { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Long scanId = carsLoadScanEntity.getId(); |
|
|
|
|
|
|
|
List<TrunklineScanZeroDetailVO> zeroDetailVOList = scanZeroDetailService.findListByCarsLoadScanId(scanId); |
|
|
|
|
|
|
|
List<TrunklineScanZeroDetailEntity> zeroDetailList = new ArrayList<>(); |
|
|
|
|
|
|
|
zeroDetailVOList.forEach(zeroDetailVO -> { |
|
|
|
|
|
|
|
TrunklineScanZeroDetailEntity entity = new TrunklineScanZeroDetailEntity(); |
|
|
|
|
|
|
|
BeanUtil.copy(zeroDetailVO, entity); |
|
|
|
|
|
|
|
zeroDetailList.add(entity); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
//TODO 暂时注释
|
|
|
|
|
|
|
|
// carsLoadAsyncService.sendReportZeroPackageSignData(AuthUtil.getUserId(), AuthUtil.getNickName(), warehouseId, warehouseName, zeroDetailList, carsLoadScanEntity, carsLoadEntity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return R.success("签收成功"); |
|
|
|
return R.success("签收成功"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -10946,7 +11030,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
|
|
|
|
|
|
|
|
TrunklineCarsLoadEntity carsLoadEntity = baseMapper.selectById(loadId); |
|
|
|
TrunklineCarsLoadEntity carsLoadEntity = baseMapper.selectById(loadId); |
|
|
|
|
|
|
|
|
|
|
|
carsLoadAsyncService.sendReportRemoveScanData(AuthUtil.getUserId(),AuthUtil.getNickName(),warehouseId,warehouseName,carsLoadScanEntityList,carsLoadEntity); |
|
|
|
//TODO 暂时注释
|
|
|
|
|
|
|
|
// carsLoadAsyncService.sendReportRemoveScanData(AuthUtil.getUserId(),AuthUtil.getNickName(),warehouseId,warehouseName,carsLoadScanEntityList,carsLoadEntity);
|
|
|
|
|
|
|
|
|
|
|
|
// Long loadId = null;
|
|
|
|
// Long loadId = null;
|
|
|
|
// for (String str : split) {
|
|
|
|
// for (String str : split) {
|
|
|
@ -11299,6 +11384,13 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
String orderCode = null; |
|
|
|
String orderCode = null; |
|
|
|
Integer isTransfer = 0; |
|
|
|
Integer isTransfer = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询包件是否签收
|
|
|
|
|
|
|
|
DistributionParcelListEntity signDistributionParcelListEntity = distributionParcelListClient.findOrderPackageCodeAndStatus(orderPackageCode,"70"); |
|
|
|
|
|
|
|
if (!Objects.isNull(signDistributionParcelListEntity)) { |
|
|
|
|
|
|
|
log.warn("##############unloadPackage: 包件已签收 orderPackageCode={} warehouseId={}", orderPackageCode, warehouseId); |
|
|
|
|
|
|
|
return R.fail(405, "包件已签收"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//判断包件是否已入库
|
|
|
|
//判断包件是否已入库
|
|
|
|
DistributionParcelListEntity distributionParcelListEntity = distributionParcelListClient.findByPacketBarCodeAndWarehouseId(orderPackageCode, warehouseId); |
|
|
|
DistributionParcelListEntity distributionParcelListEntity = distributionParcelListClient.findByPacketBarCodeAndWarehouseId(orderPackageCode, warehouseId); |
|
|
|
if (!Objects.isNull(distributionParcelListEntity)) { |
|
|
|
if (!Objects.isNull(distributionParcelListEntity)) { |
|
|
@ -11309,13 +11401,6 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//查询包件是否签收
|
|
|
|
|
|
|
|
DistributionParcelListEntity signDistributionParcelListEntity = distributionParcelListClient.findOrderPackageCodeAndStatus(orderPackageCode,"70"); |
|
|
|
|
|
|
|
if (!Objects.isNull(signDistributionParcelListEntity)) { |
|
|
|
|
|
|
|
log.warn("##############unloadPackage: 包件已签收 orderPackageCode={} warehouseId={}", orderPackageCode, warehouseId); |
|
|
|
|
|
|
|
return R.fail(405, "包件已签收"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QueryWrapper<TrunklineCarsLoadScanEntity> neloadScanQueryWrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<TrunklineCarsLoadScanEntity> neloadScanQueryWrapper = new QueryWrapper<>(); |
|
|
|
neloadScanQueryWrapper.eq("load_id", loadId) |
|
|
|
neloadScanQueryWrapper.eq("load_id", loadId) |
|
|
@ -12046,6 +12131,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
packageTrackLogAsyncService.addPackageTrackLog(AuthUtil.getTenantId(), AuthUtil.getUserId(), Func.firstLong(AuthUtil.getDeptId()), AuthUtil.getNickName(), orderPackageCodes, warehouseId, warehouseName, WorkNodeEnums.UNLOAD_INCOMING_WAREHOUSE.getCode(), content); |
|
|
|
packageTrackLogAsyncService.addPackageTrackLog(AuthUtil.getTenantId(), AuthUtil.getUserId(), Func.firstLong(AuthUtil.getDeptId()), AuthUtil.getNickName(), orderPackageCodes, warehouseId, warehouseName, WorkNodeEnums.UNLOAD_INCOMING_WAREHOUSE.getCode(), content); |
|
|
|
|
|
|
|
|
|
|
|
carsLoadAsyncService.sendFactoryData(orderCode,orderPackageCode,warehouseId,warehouseName); |
|
|
|
carsLoadAsyncService.sendFactoryData(orderCode,orderPackageCode,warehouseId,warehouseName); |
|
|
|
|
|
|
|
//TODO 暂时注释
|
|
|
|
|
|
|
|
// carsLoadAsyncService.sendReportPackageUnloadData(AuthUtil.getNickName(),AuthUtil.getUserId(),warehouseId,warehouseName,carsLoadEntity,orderPackageCodes);
|
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
log.warn("#########卸车存入日志失败"); |
|
|
|
log.warn("#########卸车存入日志失败"); |
|
|
|
} |
|
|
|
} |
|
|
@ -12059,10 +12146,6 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
// audio.append("异常卸车").append(abnormalUnloadNum).append("件");
|
|
|
|
// audio.append("异常卸车").append(abnormalUnloadNum).append("件");
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
List<String> orderPackageCodeList = new ArrayList<>(); |
|
|
|
|
|
|
|
orderPackageCodeList.add(orderPackageCode); |
|
|
|
|
|
|
|
carsLoadAsyncService.sendReportPackageUnloadData(AuthUtil.getNickName(),AuthUtil.getUserId(),warehouseId,warehouseName,carsLoadEntity,orderPackageCodeList); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isData == 0) { |
|
|
|
if (isData == 0) { |
|
|
|
return Resp.fail(4005,"系统无编码"); |
|
|
|
return Resp.fail(4005,"系统无编码"); |
|
|
|
} |
|
|
|
} |
|
|
@ -12809,7 +12892,8 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL |
|
|
|
|
|
|
|
|
|
|
|
List<String> orderPackageCodeList = new ArrayList<>(); |
|
|
|
List<String> orderPackageCodeList = new ArrayList<>(); |
|
|
|
orderPackageCodeList.add(orderPackageCode); |
|
|
|
orderPackageCodeList.add(orderPackageCode); |
|
|
|
carsLoadAsyncService.sendReportPackageUnloadData(AuthUtil.getNickName(),AuthUtil.getUserId(),warehouseId,warehouseName,carsLoadEntity,orderPackageCodeList); |
|
|
|
//TODO 暂时注释
|
|
|
|
|
|
|
|
// carsLoadAsyncService.sendReportPackageUnloadData(AuthUtil.getNickName(),AuthUtil.getUserId(),warehouseId,warehouseName,carsLoadEntity,orderPackageCodeList);
|
|
|
|
|
|
|
|
|
|
|
|
if (isData == 0) { |
|
|
|
if (isData == 0) { |
|
|
|
return Resp.scanSuccess("卸车成功", "系统无编码"); |
|
|
|
return Resp.scanSuccess("卸车成功", "系统无编码"); |
|
|
|