From 34f741f39e22bf48df33321230380b40c23110c3 Mon Sep 17 00:00:00 2001
From: huliguo <2023611923@qq.com>
Date: 星期五, 18 四月 2025 21:34:13 +0800
Subject: [PATCH] 店铺、积分、订单

---
 ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/AppUserServiceImpl.java |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/AppUserServiceImpl.java b/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/AppUserServiceImpl.java
index 3710030..dcb326a 100644
--- a/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/AppUserServiceImpl.java
+++ b/ruoyi-service/ruoyi-account/src/main/java/com/ruoyi/account/service/impl/AppUserServiceImpl.java
@@ -520,8 +520,18 @@
 		List<Shop> shopList = shopClient.getShopByUserId(userId).getData();
 		user.setShopStatus(0);//未拥有门店
 		if (shopList != null && !shopList.isEmpty()) {
+			user.setShopStatus(2);//门店都被冻结
 			for (Shop shop : shopList) {
-				user.setShopStatus(shop.getStatus());//门店状态
+				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());
+
 			}
 		}
 		return user;

--
Gitblit v1.7.1