|
|
@ -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));
|
|
|
|
}
|
|
|
|
}
|
|
|
|