diff --git a/blade-service/logpm-factory/src/main/java/com/logpm/factory/pan/service/impl/PanFactoryDataServiceImpl.java b/blade-service/logpm-factory/src/main/java/com/logpm/factory/pan/service/impl/PanFactoryDataServiceImpl.java index 401a4e4e1..e542144a8 100644 --- a/blade-service/logpm-factory/src/main/java/com/logpm/factory/pan/service/impl/PanFactoryDataServiceImpl.java +++ b/blade-service/logpm-factory/src/main/java/com/logpm/factory/pan/service/impl/PanFactoryDataServiceImpl.java @@ -582,8 +582,18 @@ public class PanFactoryDataServiceImpl implements IPanFactoryDataService { * @param basicdataWarehouseEntity 仓库对象 */ private void saveOrderPackage(String unitNo, DistributionStockArticleEntity distributionStockArticleEntity, BasicdataWarehouseEntity basicdataWarehouseEntity, String waybillNo,String operationTime) { - DistributionParcelListEntityVO vo = advanceDetailClient.getByUnitNo(unitNo); -// WarehouseWaybillEntity warehouseWaybill = warehouseWaybillClient.findByWaybillNo(waybillNo); + + DistributionParcelListEntityVO vo; + // 判断当前查询包件不是否为皮阿落 + if("皮阿诺".equals(distributionStockArticleEntity.getBrand())){ + vo = advanceDetailClient.getByUnitNoByPyl(unitNo); + }else{ + vo = advanceDetailClient.getByUnitNo(unitNo); + + } +// +// DistributionParcelListEntityVO vo = advanceDetailClient.getByUnitNo(unitNo); +//// WarehouseWaybillEntity warehouseWaybill = warehouseWaybillClient.findByWaybillNo(waybillNo); if(Objects.isNull(vo)){ logger.warn("##############saveOrderPackage: 未在老系统查询到包件数据 unitNo={}",unitNo); diff --git a/blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/feign/AdvanceDetailClient.java b/blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/feign/AdvanceDetailClient.java index 4f8fa0d76..388c9eee8 100644 --- a/blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/feign/AdvanceDetailClient.java +++ b/blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/feign/AdvanceDetailClient.java @@ -79,6 +79,11 @@ public class AdvanceDetailClient implements IAdvanceDetailClient { return advanceDetailService.getByUnitNo(unitNo); } + @Override + public DistributionParcelListEntityVO getByUnitNoByPyl(String unitNo) { + return advanceDetailService.getByUnitNoByPyl(unitNo); + } + @Override @GetMapping(API_PREFIX + "/getAllNumByOrderNo") public Integer getAllNumByOrderNo(String orderSelfNum) { diff --git a/blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/mapper/AdvanceDetailMapper.java b/blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/mapper/AdvanceDetailMapper.java index 02b256425..1a5f9bbcd 100644 --- a/blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/mapper/AdvanceDetailMapper.java +++ b/blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/mapper/AdvanceDetailMapper.java @@ -60,4 +60,6 @@ public interface AdvanceDetailMapper extends BaseMapper { List findAdvanceDetailEntityByPackageCode(@Param("newList") List newList); DistributionParcelListEntityVO getByUnitNoAndWarehouseId(@Param("unitNo") String unitNo, @Param("oldWarehouseId") Integer oldWarehouseId); + + DistributionParcelListEntityVO getByUnitNoByPyl(@Param("unitNo")String unitNo); } diff --git a/blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/mapper/AdvanceDetailMapper.xml b/blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/mapper/AdvanceDetailMapper.xml index c5fda245b..f94920eac 100644 --- a/blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/mapper/AdvanceDetailMapper.xml +++ b/blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/mapper/AdvanceDetailMapper.xml @@ -117,6 +117,33 @@ + + +