From 5cac2f203130446ce4462280a1fde7acf10e7abe Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" Date: Sun, 12 May 2024 19:52:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E6=8F=90=E7=AD=BE?= =?UTF-8?q?=E6=94=B6=E6=95=B0=E6=8D=AE=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DistrilbutionBillLadingServiceImpl.java | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java index a3f27f09b..08a83fefc 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistrilbutionBillLadingServiceImpl.java @@ -1329,15 +1329,33 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl>>>> 推送老系统签收信息报错", e); + log.error(">>>>> 推送老系统自提签收信息报错", e); return false; } } + /** + * 转换老系统的ID + * @param delivery + */ + private void modifyWarehouseId(SignPushDataDTO delivery) { + + if(!Objects.isNull(delivery.getWarehouseId())){ + // 查询老系统的ID + BasicdataWarehouseEntity entityWarehouseId = warehouseClient.getEntityWarehouseId(delivery.getWarehouseId()); + if(Objects.nonNull(entityWarehouseId)){ + delivery.setWarehouseId(Long.parseLong(entityWarehouseId.getOldId()+"")); + } + } + + } + /** * 构建名称和电话号码