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