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

@ -181,9 +181,12 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
if (!sourceItemInfosResp.isSuccess()) {
throw new RuntimeException(sourceItemInfosResp.getReason());
}
System.out.println("sourceItemInfosResp: " + sourceItemInfosResp);
List<String> errorList = new ArrayList<>();
for (Map.Entry<String, CommonResponseDTO> 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));

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

Loading…
Cancel
Save