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("店铺不存在");