|
|
|
@ -701,9 +701,10 @@ public class CarsLoadAsyncServiceImpl implements ICarsLoadAsyncService {
|
|
|
|
|
nodeFanoutMsg.setWarehouse(warehouseName); |
|
|
|
|
nodeFanoutMsg.setWarehouseId(warehouseId); |
|
|
|
|
nodeFanoutMsg.setOperatorTime(new Date()); |
|
|
|
|
nodeFanoutMsg.setMain(carsLoadEntity); |
|
|
|
|
//组装包件数据
|
|
|
|
|
|
|
|
|
|
JSONObject json = JSONObject.parseObject(JSONObject.toJSONString(carsLoadEntity)); |
|
|
|
|
|
|
|
|
|
//把carsLoadScanEntityList通过type进行分组
|
|
|
|
|
Map<Integer, List<TrunklineCarsLoadScanEntity>> collect = carsLoadScanEntityList.stream().collect(Collectors.groupingBy(TrunklineCarsLoadScanEntity::getType)); |
|
|
|
|
|
|
|
|
@ -750,7 +751,8 @@ public class CarsLoadAsyncServiceImpl implements ICarsLoadAsyncService {
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
nodeFanoutMsg.setDetails(packageDataList); |
|
|
|
|
json.put("details",packageDataList); |
|
|
|
|
nodeFanoutMsg.setMain(json); |
|
|
|
|
|
|
|
|
|
FanoutMsg fanoutMsg = FanoutMsg.builder().exchange(FanoutConstants.trunkline.REPORTDATA.EXCHANGE).msg(JSONObject.toJSONString(nodeFanoutMsg)).build(); |
|
|
|
|
|
|
|
|
@ -776,9 +778,10 @@ public class CarsLoadAsyncServiceImpl implements ICarsLoadAsyncService {
|
|
|
|
|
nodeFanoutMsg.setWarehouse(warehouseName); |
|
|
|
|
nodeFanoutMsg.setWarehouseId(warehouseId); |
|
|
|
|
nodeFanoutMsg.setOperatorTime(new Date()); |
|
|
|
|
nodeFanoutMsg.setMain(carsLoadEntity); |
|
|
|
|
//组装包件数据
|
|
|
|
|
|
|
|
|
|
JSONObject json = JSONObject.parseObject(JSONObject.toJSONString(carsLoadEntity)); |
|
|
|
|
|
|
|
|
|
//把carsLoadScanEntityList通过type进行分组
|
|
|
|
|
Map<Integer, List<TrunklineCarsLoadScanEntity>> collect = carsLoadScanEntityList.stream().collect(Collectors.groupingBy(TrunklineCarsLoadScanEntity::getType)); |
|
|
|
|
|
|
|
|
@ -825,7 +828,8 @@ public class CarsLoadAsyncServiceImpl implements ICarsLoadAsyncService {
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
nodeFanoutMsg.setDetails(packageDataList); |
|
|
|
|
json.put("details",packageDataList); |
|
|
|
|
nodeFanoutMsg.setMain(json); |
|
|
|
|
|
|
|
|
|
FanoutMsg fanoutMsg = FanoutMsg.builder().exchange(FanoutConstants.trunkline.REPORTDATA.EXCHANGE).msg(JSONObject.toJSONString(nodeFanoutMsg)).build(); |
|
|
|
|
|
|
|
|
@ -844,9 +848,10 @@ public class CarsLoadAsyncServiceImpl implements ICarsLoadAsyncService {
|
|
|
|
|
nodeFanoutMsg.setWarehouse(warehouseName); |
|
|
|
|
nodeFanoutMsg.setWarehouseId(warehouseId); |
|
|
|
|
nodeFanoutMsg.setOperatorTime(new Date()); |
|
|
|
|
nodeFanoutMsg.setMain(carsLoadEntity); |
|
|
|
|
//组装包件数据
|
|
|
|
|
|
|
|
|
|
JSONObject json = JSONObject.parseObject(JSONObject.toJSONString(carsLoadEntity)); |
|
|
|
|
|
|
|
|
|
//把carsLoadScanEntityList通过type进行分组
|
|
|
|
|
Map<Integer, List<TrunklineCarsLoadScanEntity>> collect = carsLoadScanEntityList.stream().collect(Collectors.groupingBy(TrunklineCarsLoadScanEntity::getType)); |
|
|
|
|
|
|
|
|
@ -892,8 +897,8 @@ public class CarsLoadAsyncServiceImpl implements ICarsLoadAsyncService {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
nodeFanoutMsg.setDetails(packageDataList); |
|
|
|
|
json.put("details",packageDataList); |
|
|
|
|
nodeFanoutMsg.setMain(json); |
|
|
|
|
|
|
|
|
|
FanoutMsg fanoutMsg = FanoutMsg.builder().exchange(FanoutConstants.trunkline.REPORTDATA.EXCHANGE).msg(JSONObject.toJSONString(nodeFanoutMsg)).build(); |
|
|
|
|
|
|
|
|
@ -911,9 +916,11 @@ public class CarsLoadAsyncServiceImpl implements ICarsLoadAsyncService {
|
|
|
|
|
nodeFanoutMsg.setWarehouse(warehouseName); |
|
|
|
|
nodeFanoutMsg.setWarehouseId(warehouseId); |
|
|
|
|
nodeFanoutMsg.setOperatorTime(new Date()); |
|
|
|
|
nodeFanoutMsg.setMain(carsLoadEntity); |
|
|
|
|
|
|
|
|
|
//组装包件数据
|
|
|
|
|
|
|
|
|
|
JSONObject json = JSONObject.parseObject(JSONObject.toJSONString(carsLoadEntity)); |
|
|
|
|
|
|
|
|
|
List<PackageData> packageDataList = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
orderPackageCodeList.forEach(packageCode -> { |
|
|
|
@ -924,7 +931,9 @@ public class CarsLoadAsyncServiceImpl implements ICarsLoadAsyncService {
|
|
|
|
|
packageDataList.add(packageData); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
nodeFanoutMsg.setDetails(packageDataList); |
|
|
|
|
json.put("details",packageDataList); |
|
|
|
|
|
|
|
|
|
nodeFanoutMsg.setMain(json); |
|
|
|
|
|
|
|
|
|
FanoutMsg fanoutMsg = FanoutMsg.builder().exchange(FanoutConstants.trunkline.REPORTDATA.EXCHANGE).msg(JSONObject.toJSONString(nodeFanoutMsg)).build(); |
|
|
|
|
|
|
|
|
@ -943,9 +952,11 @@ public class CarsLoadAsyncServiceImpl implements ICarsLoadAsyncService {
|
|
|
|
|
nodeFanoutMsg.setWarehouse(warehouseName); |
|
|
|
|
nodeFanoutMsg.setWarehouseId(warehouseId); |
|
|
|
|
nodeFanoutMsg.setOperatorTime(new Date()); |
|
|
|
|
nodeFanoutMsg.setMain(carsLoadEntity); |
|
|
|
|
|
|
|
|
|
//组装包件数据
|
|
|
|
|
|
|
|
|
|
JSONObject json = JSONObject.parseObject(JSONObject.toJSONString(carsLoadEntity)); |
|
|
|
|
|
|
|
|
|
List<PackageData> packageDataList = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
sendList.forEach(zeroDetailVO -> { |
|
|
|
@ -959,7 +970,8 @@ public class CarsLoadAsyncServiceImpl implements ICarsLoadAsyncService {
|
|
|
|
|
packageDataList.add(packageData); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
nodeFanoutMsg.setDetails(packageDataList); |
|
|
|
|
json.put("details",packageDataList); |
|
|
|
|
nodeFanoutMsg.setMain(json); |
|
|
|
|
|
|
|
|
|
FanoutMsg fanoutMsg = FanoutMsg.builder().exchange(FanoutConstants.trunkline.REPORTDATA.EXCHANGE).msg(JSONObject.toJSONString(nodeFanoutMsg)).build(); |
|
|
|
|
|
|
|
|
@ -980,9 +992,10 @@ public class CarsLoadAsyncServiceImpl implements ICarsLoadAsyncService {
|
|
|
|
|
nodeFanoutMsg.setWarehouse(warehouseEntity.getName()); |
|
|
|
|
nodeFanoutMsg.setWarehouseId(warehouseId); |
|
|
|
|
nodeFanoutMsg.setOperatorTime(new Date()); |
|
|
|
|
nodeFanoutMsg.setMain(carsLoadEntity); |
|
|
|
|
//组装包件数据
|
|
|
|
|
|
|
|
|
|
JSONObject json = JSONObject.parseObject(JSONObject.toJSONString(carsLoadEntity)); |
|
|
|
|
|
|
|
|
|
List<PackageData> packageDataList = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
scanEntityList.forEach(scanEntity -> { |
|
|
|
@ -993,7 +1006,8 @@ public class CarsLoadAsyncServiceImpl implements ICarsLoadAsyncService {
|
|
|
|
|
packageDataList.add(packageData); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
nodeFanoutMsg.setDetails(packageDataList); |
|
|
|
|
json.put("details",packageDataList); |
|
|
|
|
nodeFanoutMsg.setMain(json); |
|
|
|
|
|
|
|
|
|
FanoutMsg fanoutMsg = FanoutMsg.builder().exchange(FanoutConstants.trunkline.REPORTDATA.EXCHANGE).msg(JSONObject.toJSONString(nodeFanoutMsg)).build(); |
|
|
|
|
|
|
|
|
|