From 4075ebe2e8b61bca7530fc1e83875c38b4ce1768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98chaoosc=E2=80=99?= <‘chaoosc@gmail.com’> Date: Thu, 19 Oct 2023 14:32:57 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=88=A4=E6=96=AD=E5=AF=B9=20=E7=9A=AE?= =?UTF-8?q?=E4=BA=9A=E7=BD=97=E7=9A=84=E7=89=B9=E6=AE=8A=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/PanFactoryDataServiceImpl.java | 14 ++++++++-- .../oldproject/feign/AdvanceDetailClient.java | 5 ++++ .../mapper/AdvanceDetailMapper.java | 2 ++ .../oldproject/mapper/AdvanceDetailMapper.xml | 27 +++++++++++++++++++ .../service/IAdvanceDetailService.java | 2 ++ .../impl/AdvanceDetailServiceImpl.java | 5 ++++ 6 files changed, 53 insertions(+), 2 deletions(-) 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 @@ + + +