|
|
|
@ -3820,6 +3820,25 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
|
|
|
|
|
//直接新增的包件
|
|
|
|
|
distributionParcelListClient.addBatch(newParcelListEntities); |
|
|
|
|
if(CollUtil.isNotEmpty(newParcelListEntities)){ |
|
|
|
|
for (DistributionParcelListEntity entity : newParcelListEntities) { |
|
|
|
|
try { |
|
|
|
|
// 发送入库消息
|
|
|
|
|
OrderStatusDTO orderStatusDTO = new OrderStatusDTO(); |
|
|
|
|
// 通过包件id 查询包件
|
|
|
|
|
orderStatusDTO.setUnitNo(entity.getOrderPackageCode()); |
|
|
|
|
orderStatusDTO.setOrderNo(entity.getOrderCode()); |
|
|
|
|
orderStatusDTO.setStatus("4"); |
|
|
|
|
orderStatusDTO.setOperationTime(DateUtil.now()); |
|
|
|
|
orderStatusDTO.setCurrentWarehouse(warehouseId.toString()); |
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
map.put("messageData", JSONUtil.toJsonStr(orderStatusDTO)); |
|
|
|
|
rabbitTemplate.convertAndSend(RabbitConstant.HWY_ORDER_STATUS_EXCHANGE, RabbitConstant.HWY_ORDER_STATUS_ROUTING, map); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.error("推送卸车失败{}",e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
trunklineCarsLoadScanService.updateBatchById(updateScanEntityList); |
|
|
|
|
|
|
|
|
@ -5446,6 +5465,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
Long trayId = null; |
|
|
|
|
String trayName = null; |
|
|
|
|
String trayCode = null; |
|
|
|
|
String orderCode = null; |
|
|
|
|
|
|
|
|
|
//判断包件是否已入库
|
|
|
|
|
DistributionParcelListEntity distributionParcelListEntity = distributionParcelListClient.findByPacketBarCodeAndWarehouseId(orderPackageCode, warehouseId); |
|
|
|
@ -5512,7 +5532,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
String waybillNumber = parcelListEntity.getWaybillNumber(); |
|
|
|
|
String orderCode = parcelListEntity.getOrderCode(); |
|
|
|
|
orderCode = parcelListEntity.getOrderCode(); |
|
|
|
|
Long wid = parcelListEntity.getWarehouseId(); |
|
|
|
|
String wName = parcelListEntity.getWarehouse(); |
|
|
|
|
Long pacakageId = parcelListEntity.getId(); |
|
|
|
@ -5656,7 +5676,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
Long finalNodeId = carsLoadScanEntity.getFinalNodeId(); |
|
|
|
|
Long waybillId = carsLoadScanEntity.getWaybillId(); |
|
|
|
|
String waybillNo = carsLoadScanEntity.getWaybillNo(); |
|
|
|
|
String orderCode = carsLoadScanEntity.getOrderCode(); |
|
|
|
|
orderCode = carsLoadScanEntity.getOrderCode(); |
|
|
|
|
Long loadScanId = carsLoadScanEntity.getId(); |
|
|
|
|
Long fromWarehouseId = carsLoadScanEntity.getFromWarehouseId(); |
|
|
|
|
Integer isData = carsLoadScanEntity.getIsData(); |
|
|
|
@ -5771,7 +5791,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
TrunklineAdvanceDetailEntity advanceDetailEntity = trunklineAdvanceDetailService.findEntityByOrderPackageCode(orderPackageCode); |
|
|
|
|
if (!Objects.isNull(advanceDetailEntity)) { |
|
|
|
|
String packageStatus = advanceDetailEntity.getPackageStatus(); |
|
|
|
|
String orderCode1 = advanceDetailEntity.getOrderCode(); |
|
|
|
|
orderCode = advanceDetailEntity.getOrderCode(); |
|
|
|
|
String waybillNo1 = advanceDetailEntity.getWaybillNo(); |
|
|
|
|
if ("0".equals(packageStatus)) { |
|
|
|
|
//未入库
|
|
|
|
@ -5780,7 +5800,7 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
inComingDTO.setWarehouseId(warehouseId); |
|
|
|
|
inComingService.incomingPackage(inComingDTO); |
|
|
|
|
|
|
|
|
|
carsLoadScanEntity.setOrderCode(orderCode1); |
|
|
|
|
carsLoadScanEntity.setOrderCode(orderCode); |
|
|
|
|
carsLoadScanEntity.setWaybillNo(waybillNo1); |
|
|
|
|
carsLoadScanEntity.setUnloadUserName(AuthUtil.getNickName()); |
|
|
|
|
carsLoadScanEntity.setUnloadTime(new Date()); |
|
|
|
@ -5827,6 +5847,23 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
|
|
|
|
|
orderPackageCodes.add(orderPackageCode); |
|
|
|
|
String content = "包件在 " + warehouseName + "卸车,卸车方式:" + IncomingTypeEnum.getValue(incomingType); |
|
|
|
|
packageTrackLogAsyncService.addPackageTrackLog(AuthUtil.getTenantId(), AuthUtil.getUserId(), Func.firstLong(AuthUtil.getDeptId()), AuthUtil.getNickName(), orderPackageCodes, warehouseId, warehouseName, WorkNodeEnums.UNLOAD_INCOMING_WAREHOUSE.getCode(), content); |
|
|
|
|
try { |
|
|
|
|
if(StrUtil.isNotEmpty(orderCode)){ |
|
|
|
|
// 发送入库消息
|
|
|
|
|
OrderStatusDTO orderStatusDTO = new OrderStatusDTO(); |
|
|
|
|
// 通过包件id 查询包件
|
|
|
|
|
orderStatusDTO.setUnitNo(orderPackageCode); |
|
|
|
|
orderStatusDTO.setOrderNo(orderCode); |
|
|
|
|
orderStatusDTO.setStatus("4"); |
|
|
|
|
orderStatusDTO.setOperationTime(DateUtil.now()); |
|
|
|
|
orderStatusDTO.setCurrentWarehouse(warehouseId.toString()); |
|
|
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
|
|
map.put("messageData", JSONUtil.toJsonStr(orderStatusDTO)); |
|
|
|
|
rabbitTemplate.convertAndSend(RabbitConstant.HWY_ORDER_STATUS_EXCHANGE, RabbitConstant.HWY_ORDER_STATUS_ROUTING, map); |
|
|
|
|
} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("入库推送失败:{}", e); |
|
|
|
|
} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.warn("#########3卸车存入日志失败"); |
|
|
|
|
} |
|
|
|
|