diff --git a/ms-biz/src/main/java/com/ms/api/spi/order/RsyncDdOrdersAndPurchaseOrdersService.java b/ms-biz/src/main/java/com/ms/api/spi/order/RsyncDdOrdersAndPurchaseOrdersService.java index ef952191..1eb84db8 100644 --- a/ms-biz/src/main/java/com/ms/api/spi/order/RsyncDdOrdersAndPurchaseOrdersService.java +++ b/ms-biz/src/main/java/com/ms/api/spi/order/RsyncDdOrdersAndPurchaseOrdersService.java @@ -87,7 +87,7 @@ public class RsyncDdOrdersAndPurchaseOrdersService extends SPIBaseService implem } } - Map> retMap = new HashMap(); + Map> purchaseOrderListMap = new HashMap(); if (!StringUtils.isEmpty(orderIdsStr)) { List shopIds = new ArrayList<>(); shopIds.add(shopId.toString()); @@ -113,17 +113,19 @@ public class RsyncDdOrdersAndPurchaseOrdersService extends SPIBaseService implem } } retOrder.setItems(itemList); - if (retMap.containsKey(orderId)) { - retMap.get(orderId).add(retOrder); + if (purchaseOrderListMap.containsKey(orderId)) { + purchaseOrderListMap.get(orderId).add(retOrder); } else { List newList = new ArrayList<>(); newList.add(retOrder); - retMap.put(orderId, newList); + purchaseOrderListMap.put(orderId, newList); } } } } + Map retMap = new HashMap(); + retMap.put("rsyncPurchaseOrderInfo", purchaseOrderListMap); return R.ok(Ret.success(retMap)); } catch (Exception e) { log.error("同步分销采购单失败,原因:" + e.getMessage());