From a5730d6b6b62b62337eeb23a883a5c1115e01a81 Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Wed, 5 Mar 2025 09:38:51 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=85=A5=E5=BA=93=E6=89=93=E6=89=98=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E9=80=BB=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../logpm/trunkline/service/impl/InComingServiceImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 50fa09ede..c52647bff 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 @@ -237,6 +237,7 @@ public class InComingServiceImpl implements IInComingService { @Transactional(rollbackFor = Exception.class) public R incomingPackage(InComingDTO inComingDTO) { AtomicReference audio = new AtomicReference<>(); + AtomicReference audioCode = new AtomicReference<>(); List sendAdvanceDetailEntityList = new ArrayList<>(); String orderPackageCode = inComingDTO.getOrderPackageCode();//包件码 Long warehouseId = inComingDTO.getWarehouseId();//仓库id @@ -393,6 +394,7 @@ public class InComingServiceImpl implements IInComingService { map.put("orderPackageCode", packageCode); R r = warehouseTrayTypeClient.orderScanOrderPackageCodeReturnR(map); int code = r.getCode(); + audioCode.set(code); if (code != 200) { audio.set(r.getMsg()); } else { @@ -529,6 +531,7 @@ public class InComingServiceImpl implements IInComingService { map.put("orderPackageCode", packageCode); R r = warehouseTrayTypeClient.orderScanOrderPackageCodeReturnR(map); int code = r.getCode(); + audioCode.set(code); if (code != 200) { audio.set(r.getMsg()); } else { @@ -595,8 +598,9 @@ public class InComingServiceImpl implements IInComingService { } String a = audio.get(); + Integer code = audioCode.get(); if (StringUtil.isNotBlank(a)) { - return Resp.scanFail(2001, a, a); + return Resp.scanFail(code, a, a); } return R.success("入库成功");