From a31a0a37bcc4b2180e95b6bc68bac4af00d7c3de Mon Sep 17 00:00:00 2001 From: ljl Date: Mon, 13 Nov 2023 11:55:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ms/biz/service/impl/DistributionOrderServiceImpl.java | 5 ++++- .../main/java/com/ms/biz/service/impl/ShopServiceImpl.java | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ms-biz/src/main/java/com/ms/biz/service/impl/DistributionOrderServiceImpl.java b/ms-biz/src/main/java/com/ms/biz/service/impl/DistributionOrderServiceImpl.java index e3ec15c..7b35c3b 100644 --- a/ms-biz/src/main/java/com/ms/biz/service/impl/DistributionOrderServiceImpl.java +++ b/ms-biz/src/main/java/com/ms/biz/service/impl/DistributionOrderServiceImpl.java @@ -181,9 +181,12 @@ public class DistributionOrderServiceImpl implements DistributionOrderService { if (!sourceItemInfosResp.isSuccess()) { throw new RuntimeException(sourceItemInfosResp.getReason()); } + System.out.println("sourceItemInfosResp: " + sourceItemInfosResp); List errorList = new ArrayList<>(); for (Map.Entry entry: sourceItemInfosResp.getSourceItemIdAndProductApiRetMap().entrySet()) { - errorList.add(entry.getValue().getReason()); + if (!entry.getValue().isSuccess()) { + errorList.add(entry.getValue().getReason()); + } } if (!errorList.isEmpty()) { throw new RuntimeException(String.join(" / ", errorList)); diff --git a/ms-biz/src/main/java/com/ms/biz/service/impl/ShopServiceImpl.java b/ms-biz/src/main/java/com/ms/biz/service/impl/ShopServiceImpl.java index 0a05a10..eaafe2e 100644 --- a/ms-biz/src/main/java/com/ms/biz/service/impl/ShopServiceImpl.java +++ b/ms-biz/src/main/java/com/ms/biz/service/impl/ShopServiceImpl.java @@ -93,6 +93,7 @@ public class ShopServiceImpl implements ShopService { @Override public ShopBO getShopInfo(Long shopId) { + System.out.println(shopId); Shop shop = getDetailById(shopId); if (shop == null) { throw new RuntimeException("店铺不存在");