From 7ea43dac46900dab7535bdd3ec957b45e43b5270 Mon Sep 17 00:00:00 2001
From: DESKTOP-71BH0QO\L、ming <172680469@qq.com>
Date: 星期三, 28 四月 2021 17:38:07 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/test' into test

---
 springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java
index c3dd2c2..e4f9c9d 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/service/impl/UserServiceImpl.java
@@ -230,6 +230,7 @@
         loginUserInfoVO.setIsmemberrole(2);
 //        志愿者状态
         String phone = sysUserDO.getPhone();
+        Long userCommunityId = sysUserDO.getCommunityId();
         if (!ObjectUtils.isEmpty(phone)) {
             ComMngVolunteerMngVO comMngVolunteerMngVO = userDao.selectVolunteerMngByPhone(phone);
             if (ObjectUtils.isEmpty(comMngVolunteerMngVO)) {
@@ -238,9 +239,10 @@
                 int state = comMngVolunteerMngVO.getState().intValue();
                 loginUserInfoVO.setVolunteerStatus(state);
             }
-            Integer countTeam = userDao.selectCountTeam(phone);
-            Integer selectCountMemberRole = userDao.selectCountMemberRole(phone);
-            Integer isSysUser = userDao.selectCountSysUser(phone);
+            //是否是"管理员"或者 本社区 "社区团队"、"党委成员"
+            Integer countTeam = userDao.selectCountTeam(phone, userCommunityId);
+            Integer selectCountMemberRole = userDao.selectCountMemberRole(phone, userCommunityId);
+            Integer isSysUser = userDao.selectCountSysUser(phone, userCommunityId);
             if (countTeam != null && countTeam > 0) {
                 loginUserInfoVO.setIsmemberrole(1);
             } else if (selectCountMemberRole != null && selectCountMemberRole > 0) {

--
Gitblit v1.7.1