From 045b45031779b09627b4850b050ebe27d08e5536 Mon Sep 17 00:00:00 2001 From: winter <664946893@qq.com> Date: Sat, 16 Nov 2024 12:22:50 +0800 Subject: [PATCH] fix --- .../com/iformall/service/impl/WxShopServiceImpl.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxShopServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxShopServiceImpl.java index af0d0ab48..6c258a83f 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxShopServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxShopServiceImpl.java @@ -326,11 +326,13 @@ public class WxShopServiceImpl implements WxShopService { } Long shopId = (Long)shop.get("id"); if (null != shopId) { - WxShopUsers su = shopUserMap.get(shopId); - if (null != su) { - shop.put("shopUserType", su.getType()); - shop.put("shopUserTypeName", su.getTypeName()); - shop.put("shopUserName", su.getName()); + if (null != shopUserMap) { + WxShopUsers su = shopUserMap.get(shopId); + if (null != su) { + shop.put("shopUserType", su.getType()); + shop.put("shopUserTypeName", su.getTypeName()); + shop.put("shopUserName", su.getName()); + } } Long merchantId = shopMerchantIdMap.get(shopId);