|
|
|
@ -83,6 +83,26 @@ public class CarsLoadDealListener {
|
|
|
|
|
}else{ |
|
|
|
|
log.warn(method+"未知的操作类型"); |
|
|
|
|
} |
|
|
|
|
}else if(WorkNodeEnums.UNLOAD_INCOMING_WAREHOUSE.equals(node)){ |
|
|
|
|
if(BizOperationEnums.ADD.equals(bizOperation)){ |
|
|
|
|
|
|
|
|
|
}else if(BizOperationEnums.DELETE.equals(bizOperation)){ |
|
|
|
|
|
|
|
|
|
}else if(BizOperationEnums.MODIFY.equals(bizOperation)){ |
|
|
|
|
saveUnloadData(main, operator, operatorId,operatorTime,warehouse,warehouseId); |
|
|
|
|
}else{ |
|
|
|
|
log.warn(method+"未知的操作类型"); |
|
|
|
|
} |
|
|
|
|
}else if(WorkNodeEnums.SIGN_DIRECT_SHIPPER.equals(node) || WorkNodeEnums.SIGN_TRIPARTITE_TRANSFER_DEPART.equals(node)){ |
|
|
|
|
if(BizOperationEnums.ADD.equals(bizOperation)){ |
|
|
|
|
|
|
|
|
|
}else if(BizOperationEnums.DELETE.equals(bizOperation)){ |
|
|
|
|
|
|
|
|
|
}else if(BizOperationEnums.MODIFY.equals(bizOperation)){ |
|
|
|
|
saveSignData(main, operator, operatorId,operatorTime,warehouse,warehouseId); |
|
|
|
|
}else{ |
|
|
|
|
log.warn(method+"未知的操作类型"); |
|
|
|
|
} |
|
|
|
|
}else { |
|
|
|
|
log.warn(method+"未知的节点类型"); |
|
|
|
|
} |
|
|
|
@ -91,6 +111,287 @@ public class CarsLoadDealListener {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void saveSignData(Object main, String operator, Long operatorId, Date operatorTime, String warehouse, Long warehouseId) { |
|
|
|
|
String method = "####################saveSignData: "; |
|
|
|
|
|
|
|
|
|
JSONObject js = JSONUtil.toBean(JSONUtil.toJsonStr(main), JSONObject.class); |
|
|
|
|
|
|
|
|
|
JSONArray details = js.getJSONArray("details"); |
|
|
|
|
|
|
|
|
|
List<PackageData> packageDataList = JSONUtil.toList(details, PackageData.class); |
|
|
|
|
//把packageDataList通过packageType的code进行分组
|
|
|
|
|
Map<Integer, List<PackageData>> packageTypeEnumsListMap = packageDataList.stream().collect(Collectors.groupingBy(t->t.getPackageType().getCode())); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TrunklineCarsLoadEntity carsLoadEntity = JSONUtil.toBean(js, TrunklineCarsLoadEntity.class); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<ReportPackageTrunklineEntity> addList = new ArrayList<>(); |
|
|
|
|
packageTypeEnumsListMap.keySet().forEach(packageTypeCode -> { |
|
|
|
|
List<PackageData> packageDataListByPackageType = packageTypeEnumsListMap.get(packageTypeCode); |
|
|
|
|
if(NumberUtil.equals(packageTypeCode,1)){ |
|
|
|
|
//把packageDataListByPackageType中所有元素的orderPackageCode放入一个List
|
|
|
|
|
List<String> packageCodes = packageDataListByPackageType.stream().map(PackageData::getPackageCode).collect(java.util.stream.Collectors.toList()); |
|
|
|
|
//把packageDataListByPackageType转化成以orderPackageCode为key的Map
|
|
|
|
|
Map<String, PackageData> packageDataMap = packageDataListByPackageType.stream().collect(Collectors.toMap(PackageData::getPackageCode, Function.identity())); |
|
|
|
|
|
|
|
|
|
List<ReportPackageBasicEntity> packageBasicEntityList = reportPackageBasicService.findByOrderPackageCodes(packageCodes); |
|
|
|
|
packageBasicEntityList.forEach(entity -> { |
|
|
|
|
ReportPackageTrunklineEntity reportPackageTrunklineEntity = new ReportPackageTrunklineEntity(); |
|
|
|
|
reportPackageTrunklineEntity.setBasicId(entity.getId()); |
|
|
|
|
reportPackageTrunklineEntity.setLoadNo(carsLoadEntity.getCarsNo()); |
|
|
|
|
reportPackageTrunklineEntity.setWaybillNo(entity.getWaybillNo()); |
|
|
|
|
reportPackageTrunklineEntity.setServiceNo(entity.getServiceNo()); |
|
|
|
|
reportPackageTrunklineEntity.setOrderCode(entity.getOrderCode()); |
|
|
|
|
String orderPackageCode = entity.getOrderPackageCode(); |
|
|
|
|
PackageData packageData = packageDataMap.get(orderPackageCode); |
|
|
|
|
|
|
|
|
|
reportPackageTrunklineEntity.setOrderPackageCode(orderPackageCode); |
|
|
|
|
reportPackageTrunklineEntity.setProductName(entity.getProductName()); |
|
|
|
|
reportPackageTrunklineEntity.setProductId(entity.getProductId()); |
|
|
|
|
reportPackageTrunklineEntity.setBrand(entity.getBrand()); |
|
|
|
|
reportPackageTrunklineEntity.setBrandId(entity.getBrandId()); |
|
|
|
|
Long departureWarehouseId = entity.getDepartureWarehouseId(); |
|
|
|
|
reportPackageTrunklineEntity.setDepartureWarehouseId(departureWarehouseId); |
|
|
|
|
reportPackageTrunklineEntity.setDepartureWarehouseName(entity.getDepartureWarehouseName()); |
|
|
|
|
Long destinationWarehouseId = entity.getDestinationWarehouseId(); |
|
|
|
|
reportPackageTrunklineEntity.setDestinationWarehouseId(destinationWarehouseId); |
|
|
|
|
reportPackageTrunklineEntity.setDestinationWarehouseName(entity.getDestinationWarehouseName()); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingWarehouseId(warehouseId); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingWarehouseName(warehouse); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingUserId(operatorId); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingUserName(operator); |
|
|
|
|
reportPackageTrunklineEntity.setFinalNodeId(packageData.getFinalNodeId()); |
|
|
|
|
reportPackageTrunklineEntity.setFinalNodeName(packageData.getFinalNodeName()); |
|
|
|
|
|
|
|
|
|
reportPackageTrunklineEntity.setIsStartWarehouse(0); |
|
|
|
|
if(warehouseId.equals(departureWarehouseId)){ |
|
|
|
|
reportPackageTrunklineEntity.setIsStartWarehouse(1); |
|
|
|
|
} |
|
|
|
|
reportPackageTrunklineEntity.setIsEndWarehouse(0); |
|
|
|
|
if(warehouseId.equals(destinationWarehouseId)){ |
|
|
|
|
reportPackageTrunklineEntity.setIsEndWarehouse(1); |
|
|
|
|
} |
|
|
|
|
reportPackageTrunklineEntity.setTrunklineStatus(3); |
|
|
|
|
reportPackageTrunklineEntity.setIsCustomer(0); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingNum(entity.getNum()); |
|
|
|
|
reportPackageTrunklineEntity.setUnloadNum(0); |
|
|
|
|
reportPackageTrunklineEntity.setSignNum(0); |
|
|
|
|
addList.add(reportPackageTrunklineEntity); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}else if(NumberUtil.equals(packageTypeCode,2)){ |
|
|
|
|
//把packageDataListByPackageType中所有元素的orderCode放入一个List
|
|
|
|
|
List<String> orderCodeList = packageDataListByPackageType.stream().map(PackageData::getOrderCode).collect(java.util.stream.Collectors.toList()); |
|
|
|
|
List<ReportPackageBasicEntity> packageBasicEntityList = reportPackageBasicService.findListByOrderCodeList(orderCodeList); |
|
|
|
|
//把packageBasicEntityList通过orderCode进行分组
|
|
|
|
|
Map<String, List<ReportPackageBasicEntity>> packageBasicEntityListMap = packageBasicEntityList.stream().collect(Collectors.groupingBy(ReportPackageBasicEntity::getOrderCode)); |
|
|
|
|
|
|
|
|
|
//把packageDataListByPackageType通过orderCode进行分组
|
|
|
|
|
Map<String, List<PackageData>> packageDataListMap = packageDataListByPackageType.stream().collect(Collectors.groupingBy(PackageData::getOrderCode)); |
|
|
|
|
packageDataListMap.keySet().forEach(orderCode -> { |
|
|
|
|
List<PackageData> packageDataList1 = packageDataListMap.get(orderCode); |
|
|
|
|
List<ReportPackageBasicEntity> packageBasicEntities = packageBasicEntityListMap.get(orderCode); |
|
|
|
|
//把packageBasicEntities转化成以productName为key的Map
|
|
|
|
|
Map<String, ReportPackageBasicEntity> packageBasicEntityMap = packageBasicEntities.stream().collect(Collectors.toMap(ReportPackageBasicEntity::getProductName, Function.identity())); |
|
|
|
|
|
|
|
|
|
packageDataList1.forEach(packageData1 -> { |
|
|
|
|
String productName = packageData1.getProductName(); |
|
|
|
|
ReportPackageBasicEntity packageBasicEntity = packageBasicEntityMap.get(productName); |
|
|
|
|
|
|
|
|
|
ReportPackageTrunklineEntity reportPackageTrunklineEntity = new ReportPackageTrunklineEntity(); |
|
|
|
|
reportPackageTrunklineEntity.setBasicId(packageBasicEntity.getId()); |
|
|
|
|
reportPackageTrunklineEntity.setLoadNo(carsLoadEntity.getCarsNo()); |
|
|
|
|
reportPackageTrunklineEntity.setWaybillNo(packageBasicEntity.getWaybillNo()); |
|
|
|
|
reportPackageTrunklineEntity.setServiceNo(packageBasicEntity.getServiceNo()); |
|
|
|
|
reportPackageTrunklineEntity.setOrderCode(packageBasicEntity.getOrderCode()); |
|
|
|
|
|
|
|
|
|
reportPackageTrunklineEntity.setOrderPackageCode(packageBasicEntity.getOrderPackageCode()); |
|
|
|
|
reportPackageTrunklineEntity.setProductName(packageBasicEntity.getProductName()); |
|
|
|
|
reportPackageTrunklineEntity.setProductId(packageBasicEntity.getProductId()); |
|
|
|
|
reportPackageTrunklineEntity.setBrand(packageBasicEntity.getBrand()); |
|
|
|
|
reportPackageTrunklineEntity.setBrandId(packageBasicEntity.getBrandId()); |
|
|
|
|
Long departureWarehouseId = packageBasicEntity.getDepartureWarehouseId(); |
|
|
|
|
reportPackageTrunklineEntity.setDepartureWarehouseId(departureWarehouseId); |
|
|
|
|
reportPackageTrunklineEntity.setDepartureWarehouseName(packageBasicEntity.getDepartureWarehouseName()); |
|
|
|
|
Long destinationWarehouseId = packageBasicEntity.getDestinationWarehouseId(); |
|
|
|
|
reportPackageTrunklineEntity.setDestinationWarehouseId(destinationWarehouseId); |
|
|
|
|
reportPackageTrunklineEntity.setDestinationWarehouseName(packageBasicEntity.getDestinationWarehouseName()); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingWarehouseId(warehouseId); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingWarehouseName(warehouse); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingUserId(operatorId); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingUserName(operator); |
|
|
|
|
reportPackageTrunklineEntity.setFinalNodeId(packageData1.getFinalNodeId()); |
|
|
|
|
reportPackageTrunklineEntity.setFinalNodeName(packageData1.getFinalNodeName()); |
|
|
|
|
|
|
|
|
|
reportPackageTrunklineEntity.setIsStartWarehouse(0); |
|
|
|
|
if(warehouseId.equals(departureWarehouseId)){ |
|
|
|
|
reportPackageTrunklineEntity.setIsStartWarehouse(1); |
|
|
|
|
} |
|
|
|
|
reportPackageTrunklineEntity.setIsEndWarehouse(0); |
|
|
|
|
if(warehouseId.equals(destinationWarehouseId)){ |
|
|
|
|
reportPackageTrunklineEntity.setIsEndWarehouse(1); |
|
|
|
|
} |
|
|
|
|
reportPackageTrunklineEntity.setTrunklineStatus(3); |
|
|
|
|
reportPackageTrunklineEntity.setIsCustomer(0); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingNum(packageData1.getNumber()); |
|
|
|
|
reportPackageTrunklineEntity.setUnloadNum(0); |
|
|
|
|
reportPackageTrunklineEntity.setSignNum(0); |
|
|
|
|
addList.add(reportPackageTrunklineEntity); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if(CollUtil.isNotEmpty(addList)){ |
|
|
|
|
reportPackageTrunklineService.saveBatch(addList); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void saveUnloadData(Object main, String operator, Long operatorId, Date operatorTime, String warehouse, Long warehouseId) { |
|
|
|
|
String method = "####################saveUnloadData: "; |
|
|
|
|
|
|
|
|
|
JSONObject js = JSONUtil.toBean(JSONUtil.toJsonStr(main), JSONObject.class); |
|
|
|
|
|
|
|
|
|
JSONArray details = js.getJSONArray("details"); |
|
|
|
|
|
|
|
|
|
List<PackageData> packageDataList = JSONUtil.toList(details, PackageData.class); |
|
|
|
|
//把packageDataList通过packageType的code进行分组
|
|
|
|
|
Map<Integer, List<PackageData>> packageTypeEnumsListMap = packageDataList.stream().collect(Collectors.groupingBy(t->t.getPackageType().getCode())); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TrunklineCarsLoadEntity carsLoadEntity = JSONUtil.toBean(js, TrunklineCarsLoadEntity.class); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<ReportPackageTrunklineEntity> addList = new ArrayList<>(); |
|
|
|
|
packageTypeEnumsListMap.keySet().forEach(packageTypeCode -> { |
|
|
|
|
List<PackageData> packageDataListByPackageType = packageTypeEnumsListMap.get(packageTypeCode); |
|
|
|
|
if(NumberUtil.equals(packageTypeCode,1)){ |
|
|
|
|
//把packageDataListByPackageType中所有元素的orderPackageCode放入一个List
|
|
|
|
|
List<String> packageCodes = packageDataListByPackageType.stream().map(PackageData::getPackageCode).collect(java.util.stream.Collectors.toList()); |
|
|
|
|
//把packageDataListByPackageType转化成以orderPackageCode为key的Map
|
|
|
|
|
Map<String, PackageData> packageDataMap = packageDataListByPackageType.stream().collect(Collectors.toMap(PackageData::getPackageCode, Function.identity())); |
|
|
|
|
|
|
|
|
|
List<ReportPackageBasicEntity> packageBasicEntityList = reportPackageBasicService.findByOrderPackageCodes(packageCodes); |
|
|
|
|
packageBasicEntityList.forEach(entity -> { |
|
|
|
|
ReportPackageTrunklineEntity reportPackageTrunklineEntity = new ReportPackageTrunklineEntity(); |
|
|
|
|
reportPackageTrunklineEntity.setBasicId(entity.getId()); |
|
|
|
|
reportPackageTrunklineEntity.setLoadNo(carsLoadEntity.getCarsNo()); |
|
|
|
|
reportPackageTrunklineEntity.setWaybillNo(entity.getWaybillNo()); |
|
|
|
|
reportPackageTrunklineEntity.setServiceNo(entity.getServiceNo()); |
|
|
|
|
reportPackageTrunklineEntity.setOrderCode(entity.getOrderCode()); |
|
|
|
|
String orderPackageCode = entity.getOrderPackageCode(); |
|
|
|
|
PackageData packageData = packageDataMap.get(orderPackageCode); |
|
|
|
|
|
|
|
|
|
reportPackageTrunklineEntity.setOrderPackageCode(orderPackageCode); |
|
|
|
|
reportPackageTrunklineEntity.setProductName(entity.getProductName()); |
|
|
|
|
reportPackageTrunklineEntity.setProductId(entity.getProductId()); |
|
|
|
|
reportPackageTrunklineEntity.setBrand(entity.getBrand()); |
|
|
|
|
reportPackageTrunklineEntity.setBrandId(entity.getBrandId()); |
|
|
|
|
Long departureWarehouseId = entity.getDepartureWarehouseId(); |
|
|
|
|
reportPackageTrunklineEntity.setDepartureWarehouseId(departureWarehouseId); |
|
|
|
|
reportPackageTrunklineEntity.setDepartureWarehouseName(entity.getDepartureWarehouseName()); |
|
|
|
|
Long destinationWarehouseId = entity.getDestinationWarehouseId(); |
|
|
|
|
reportPackageTrunklineEntity.setDestinationWarehouseId(destinationWarehouseId); |
|
|
|
|
reportPackageTrunklineEntity.setDestinationWarehouseName(entity.getDestinationWarehouseName()); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingWarehouseId(warehouseId); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingWarehouseName(warehouse); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingUserId(operatorId); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingUserName(operator); |
|
|
|
|
reportPackageTrunklineEntity.setFinalNodeId(packageData.getFinalNodeId()); |
|
|
|
|
reportPackageTrunklineEntity.setFinalNodeName(packageData.getFinalNodeName()); |
|
|
|
|
|
|
|
|
|
reportPackageTrunklineEntity.setIsStartWarehouse(0); |
|
|
|
|
if(warehouseId.equals(departureWarehouseId)){ |
|
|
|
|
reportPackageTrunklineEntity.setIsStartWarehouse(1); |
|
|
|
|
} |
|
|
|
|
reportPackageTrunklineEntity.setIsEndWarehouse(0); |
|
|
|
|
if(warehouseId.equals(destinationWarehouseId)){ |
|
|
|
|
reportPackageTrunklineEntity.setIsEndWarehouse(1); |
|
|
|
|
} |
|
|
|
|
reportPackageTrunklineEntity.setTrunklineStatus(2); |
|
|
|
|
reportPackageTrunklineEntity.setIsCustomer(0); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingNum(entity.getNum()); |
|
|
|
|
reportPackageTrunklineEntity.setUnloadNum(0); |
|
|
|
|
reportPackageTrunklineEntity.setSignNum(0); |
|
|
|
|
addList.add(reportPackageTrunklineEntity); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}else if(NumberUtil.equals(packageTypeCode,2)){ |
|
|
|
|
//把packageDataListByPackageType中所有元素的orderCode放入一个List
|
|
|
|
|
List<String> orderCodeList = packageDataListByPackageType.stream().map(PackageData::getOrderCode).collect(java.util.stream.Collectors.toList()); |
|
|
|
|
List<ReportPackageBasicEntity> packageBasicEntityList = reportPackageBasicService.findListByOrderCodeList(orderCodeList); |
|
|
|
|
//把packageBasicEntityList通过orderCode进行分组
|
|
|
|
|
Map<String, List<ReportPackageBasicEntity>> packageBasicEntityListMap = packageBasicEntityList.stream().collect(Collectors.groupingBy(ReportPackageBasicEntity::getOrderCode)); |
|
|
|
|
|
|
|
|
|
//把packageDataListByPackageType通过orderCode进行分组
|
|
|
|
|
Map<String, List<PackageData>> packageDataListMap = packageDataListByPackageType.stream().collect(Collectors.groupingBy(PackageData::getOrderCode)); |
|
|
|
|
packageDataListMap.keySet().forEach(orderCode -> { |
|
|
|
|
List<PackageData> packageDataList1 = packageDataListMap.get(orderCode); |
|
|
|
|
List<ReportPackageBasicEntity> packageBasicEntities = packageBasicEntityListMap.get(orderCode); |
|
|
|
|
//把packageBasicEntities转化成以productName为key的Map
|
|
|
|
|
Map<String, ReportPackageBasicEntity> packageBasicEntityMap = packageBasicEntities.stream().collect(Collectors.toMap(ReportPackageBasicEntity::getProductName, Function.identity())); |
|
|
|
|
|
|
|
|
|
packageDataList1.forEach(packageData1 -> { |
|
|
|
|
String productName = packageData1.getProductName(); |
|
|
|
|
ReportPackageBasicEntity packageBasicEntity = packageBasicEntityMap.get(productName); |
|
|
|
|
|
|
|
|
|
ReportPackageTrunklineEntity reportPackageTrunklineEntity = new ReportPackageTrunklineEntity(); |
|
|
|
|
reportPackageTrunklineEntity.setBasicId(packageBasicEntity.getId()); |
|
|
|
|
reportPackageTrunklineEntity.setLoadNo(carsLoadEntity.getCarsNo()); |
|
|
|
|
reportPackageTrunklineEntity.setWaybillNo(packageBasicEntity.getWaybillNo()); |
|
|
|
|
reportPackageTrunklineEntity.setServiceNo(packageBasicEntity.getServiceNo()); |
|
|
|
|
reportPackageTrunklineEntity.setOrderCode(packageBasicEntity.getOrderCode()); |
|
|
|
|
|
|
|
|
|
reportPackageTrunklineEntity.setOrderPackageCode(packageBasicEntity.getOrderPackageCode()); |
|
|
|
|
reportPackageTrunklineEntity.setProductName(packageBasicEntity.getProductName()); |
|
|
|
|
reportPackageTrunklineEntity.setProductId(packageBasicEntity.getProductId()); |
|
|
|
|
reportPackageTrunklineEntity.setBrand(packageBasicEntity.getBrand()); |
|
|
|
|
reportPackageTrunklineEntity.setBrandId(packageBasicEntity.getBrandId()); |
|
|
|
|
Long departureWarehouseId = packageBasicEntity.getDepartureWarehouseId(); |
|
|
|
|
reportPackageTrunklineEntity.setDepartureWarehouseId(departureWarehouseId); |
|
|
|
|
reportPackageTrunklineEntity.setDepartureWarehouseName(packageBasicEntity.getDepartureWarehouseName()); |
|
|
|
|
Long destinationWarehouseId = packageBasicEntity.getDestinationWarehouseId(); |
|
|
|
|
reportPackageTrunklineEntity.setDestinationWarehouseId(destinationWarehouseId); |
|
|
|
|
reportPackageTrunklineEntity.setDestinationWarehouseName(packageBasicEntity.getDestinationWarehouseName()); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingWarehouseId(warehouseId); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingWarehouseName(warehouse); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingUserId(operatorId); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingUserName(operator); |
|
|
|
|
reportPackageTrunklineEntity.setFinalNodeId(packageData1.getFinalNodeId()); |
|
|
|
|
reportPackageTrunklineEntity.setFinalNodeName(packageData1.getFinalNodeName()); |
|
|
|
|
|
|
|
|
|
reportPackageTrunklineEntity.setIsStartWarehouse(0); |
|
|
|
|
if(warehouseId.equals(departureWarehouseId)){ |
|
|
|
|
reportPackageTrunklineEntity.setIsStartWarehouse(1); |
|
|
|
|
} |
|
|
|
|
reportPackageTrunklineEntity.setIsEndWarehouse(0); |
|
|
|
|
if(warehouseId.equals(destinationWarehouseId)){ |
|
|
|
|
reportPackageTrunklineEntity.setIsEndWarehouse(1); |
|
|
|
|
} |
|
|
|
|
reportPackageTrunklineEntity.setTrunklineStatus(2); |
|
|
|
|
reportPackageTrunklineEntity.setIsCustomer(0); |
|
|
|
|
reportPackageTrunklineEntity.setLoadingNum(packageData1.getNumber()); |
|
|
|
|
reportPackageTrunklineEntity.setUnloadNum(0); |
|
|
|
|
reportPackageTrunklineEntity.setSignNum(0); |
|
|
|
|
addList.add(reportPackageTrunklineEntity); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if(CollUtil.isNotEmpty(addList)){ |
|
|
|
|
reportPackageTrunklineService.saveBatch(addList); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void deleteCarsLoadData(Object main, String operator, Long operatorId, Date operatorTime, String warehouse, Long warehouseId) { |
|
|
|
|
String method = "####################deleteCarsLoadData: "; |
|
|
|
|
|
|
|
|
|