20240115-ljl-multiPay
ljl 1 year ago
parent 1bedd3ad8a
commit a31a0a37bc

@ -181,10 +181,13 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
if (!sourceItemInfosResp.isSuccess()) { if (!sourceItemInfosResp.isSuccess()) {
throw new RuntimeException(sourceItemInfosResp.getReason()); throw new RuntimeException(sourceItemInfosResp.getReason());
} }
System.out.println("sourceItemInfosResp: " + sourceItemInfosResp);
List<String> errorList = new ArrayList<>(); List<String> errorList = new ArrayList<>();
for (Map.Entry<String, CommonResponseDTO> entry: sourceItemInfosResp.getSourceItemIdAndProductApiRetMap().entrySet()) { for (Map.Entry<String, CommonResponseDTO> entry: sourceItemInfosResp.getSourceItemIdAndProductApiRetMap().entrySet()) {
if (!entry.getValue().isSuccess()) {
errorList.add(entry.getValue().getReason()); errorList.add(entry.getValue().getReason());
} }
}
if (!errorList.isEmpty()) { if (!errorList.isEmpty()) {
throw new RuntimeException(String.join(" / ", errorList)); throw new RuntimeException(String.join(" / ", errorList));
} }

@ -93,6 +93,7 @@ public class ShopServiceImpl implements ShopService {
@Override @Override
public ShopBO getShopInfo(Long shopId) { public ShopBO getShopInfo(Long shopId) {
System.out.println(shopId);
Shop shop = getDetailById(shopId); Shop shop = getDetailById(shopId);
if (shop == null) { if (shop == null) {
throw new RuntimeException("店铺不存在"); throw new RuntimeException("店铺不存在");

Loading…
Cancel
Save