diff --git a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/InComingDTO.java b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/InComingDTO.java index e256a40ca..9f567b977 100644 --- a/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/InComingDTO.java +++ b/blade-service-api/logpm-trunkline-api/src/main/java/com/logpm/trunkline/dto/InComingDTO.java @@ -24,4 +24,6 @@ public class InComingDTO implements Serializable { private List advanceIds;//暂存单ids + private List orderCodes; + } diff --git a/blade-service/logpm-patch/src/main/java/com/logpm/patch/service/impl/SyncOrderInfoServiceImpl.java b/blade-service/logpm-patch/src/main/java/com/logpm/patch/service/impl/SyncOrderInfoServiceImpl.java index 684a11c4b..fbc80607a 100644 --- a/blade-service/logpm-patch/src/main/java/com/logpm/patch/service/impl/SyncOrderInfoServiceImpl.java +++ b/blade-service/logpm-patch/src/main/java/com/logpm/patch/service/impl/SyncOrderInfoServiceImpl.java @@ -1643,7 +1643,11 @@ public class SyncOrderInfoServiceImpl implements ISyncOrderInfoService { entity.setOrderPackageStatus(OrderPackageStatusConstant.yiruku.getValue()); if(!Objects.isNull(waybillEntity)){ String warehouseName = waybillEntity.getWarehouseName();//目的仓 + Integer warehouseId1 = waybillEntity.getWarehouseId(); BasicdataWarehouseEntity endhouse = basicdataWarehouseClient.findByName(warehouseName); + if(Objects.isNull(endhouse)){ + endhouse = basicdataWarehouseClient.getWarehouseByOldId(warehouseId1); + } Long endWarehouseId = endhouse.getId(); if(endWarehouseId.equals(warehouseId)){ entity.setIsTransfer(0); diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineAdvanceMapper.xml b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineAdvanceMapper.xml index 2d57ab2c1..2088d1d15 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineAdvanceMapper.xml +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineAdvanceMapper.xml @@ -146,7 +146,10 @@ and lta.train_number = #{param.incomingCode} - and lta.order_code = #{param.incomingCode} + and lta.order_code in + + #{item} + diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/InComingServiceImpl.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/InComingServiceImpl.java index 0ce05c922..36b3f69f2 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/InComingServiceImpl.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/InComingServiceImpl.java @@ -19,10 +19,7 @@ import org.springblade.core.tool.api.R; import org.springblade.core.tool.utils.StringUtil; import org.springframework.stereotype.Service; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; +import java.util.*; @Slf4j @Service @@ -126,6 +123,19 @@ public class InComingServiceImpl implements IInComingService { @Override public R findIncomingOrderList(InComingDTO inComingDTO) { + Integer incomingType = inComingDTO.getIncomingType(); + if(incomingType == 5){ + String incomingCode = inComingDTO.getIncomingCode(); + incomingCode = incomingCode.replaceAll(",",","); + List orderCodes = new ArrayList<>(); + if(incomingCode.contains(",")){ + orderCodes.addAll(Arrays.asList(incomingCode.split(","))); + }else{ + orderCodes.add(incomingCode); + } + inComingDTO.setOrderCodes(orderCodes); + } + List ls = advanceService.findIncomingOrderList(inComingDTO); for (TrunklineAdvanceVO advanceVO : ls) { Long advanceId = advanceVO.getId();