From 724572dd3f7a742b65392791a3c81d19269016cb Mon Sep 17 00:00:00 2001
From: luofl <1442745593@qq.com>
Date: 星期一, 17 三月 2025 11:56:53 +0800
Subject: [PATCH] 党员认证、党员上级角色切换

---
 springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/PartyMemberServiceImpl.java |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/PartyMemberServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/PartyMemberServiceImpl.java
index b7f2c5d..6e42c3a 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/PartyMemberServiceImpl.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/service/impl/PartyMemberServiceImpl.java
@@ -311,11 +311,6 @@
                 .ne(SystemUser::getAccountLevel, 5)
                 .last("LIMIT 1"));
 
-        // 获取党员信息
-        PartyMember partyMember = getOne(new LambdaQueryWrapper<PartyMember>()
-                .eq(PartyMember::getPhone, loginUserInfo.getPhone())
-                .eq(PartyMember::getDelFlag, 0));
-
 
 
         if (adminUser == null){
@@ -323,7 +318,7 @@
         }
 
         Integer identity = (Integer) redisUtils.get("identity:" + loginUserInfo.getPhone());
-        if(identity == null || identity == 2){
+        if(identity != null && identity != 2){
             throw new ServiceException("请切换至管理员身份");
         }
 

--
Gitblit v1.7.1