From 07694596fcb265c830f713dd0ed7de9017216253 Mon Sep 17 00:00:00 2001 From: wangchaoxu Date: Mon, 4 Sep 2023 16:27:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E5=8D=95=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../order/RsyncDdOrdersAndPurchaseOrdersService.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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());