huliguo
2025-04-17 19df67e19f23cd2a04d1c7f355e1e656f4140af4
ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/AppUserServiceImpl.java
@@ -520,10 +520,15 @@
      List<Shop> shopList = shopClient.getShopByUserId(userId).getData();
      user.setShopStatus(0);//未拥有门店
      if (shopList != null && !shopList.isEmpty()) {
         user.setShopStatus(2);//门店都被冻结
         for (Shop shop : shopList) {
            if (shop.getStatus()==1) {
               user.setShopStatus(1);//门店状态
            }
            if(null==user.getShopIds()){
               Set<Integer> integers = new HashSet<>();
               user.setShopIds(integers);
            }
               user.getShopIds().add(shop.getId());
               user.setShopIds(user.getShopIds());