|
|
@ -46,7 +46,7 @@ public class RsyncDdOrdersAndPurchaseOrdersService extends SPIBaseService implem
|
|
|
|
public BaseResponse<Ret> handle(BaseRequest<RsyncDdOrdersAndPurchaseOrdersRequestDTO> req) {
|
|
|
|
public BaseResponse<Ret> handle(BaseRequest<RsyncDdOrdersAndPurchaseOrdersRequestDTO> req) {
|
|
|
|
initHandle(req);
|
|
|
|
initHandle(req);
|
|
|
|
|
|
|
|
|
|
|
|
Map retMap = new HashMap();
|
|
|
|
Map resultMap = new HashMap();
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
String orderIdsStr = req.getData().getOrderIds();
|
|
|
|
String orderIdsStr = req.getData().getOrderIds();
|
|
|
@ -86,8 +86,8 @@ public class RsyncDdOrdersAndPurchaseOrdersService extends SPIBaseService implem
|
|
|
|
if (reynsRet.getOrderIdAndFailReasonMap().size() > 0) {
|
|
|
|
if (reynsRet.getOrderIdAndFailReasonMap().size() > 0) {
|
|
|
|
// String reason = String.join(";", reynsRet.getOrderIdAndFailReasonMap().values());
|
|
|
|
// String reason = String.join(";", reynsRet.getOrderIdAndFailReasonMap().values());
|
|
|
|
// return R.ok(Ret.fail(reason));
|
|
|
|
// return R.ok(Ret.fail(reason));
|
|
|
|
retMap.put("orderIdAndErrorMap", reynsRet.getOrderIdAndFailReasonMap());
|
|
|
|
resultMap.put("orderIdAndErrorMap", reynsRet.getOrderIdAndFailReasonMap());
|
|
|
|
return R.ok(Ret.success(retMap));
|
|
|
|
return R.ok(Ret.success(resultMap));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -128,8 +128,8 @@ public class RsyncDdOrdersAndPurchaseOrdersService extends SPIBaseService implem
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
retMap.put("orderIdAndPurchaseOrderListMap", purchaseOrderListMap);
|
|
|
|
resultMap.put("orderIdAndPurchaseOrderListMap", purchaseOrderListMap);
|
|
|
|
return R.ok(Ret.success(retMap));
|
|
|
|
return R.ok(Ret.success(resultMap));
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
log.error("同步分销采购单失败,原因:" + e.getMessage());
|
|
|
|
log.error("同步分销采购单失败,原因:" + e.getMessage());
|
|
|
|
return R.ok(Ret.fail("同步分销采购单失败"));
|
|
|
|
return R.ok(Ret.fail("同步分销采购单失败"));
|
|
|
|