From f8b80fc0032e15e67e7a9ca4fe644e7147f90c70 Mon Sep 17 00:00:00 2001
From: zqy <2522236926@qq.com>
Date: 星期二, 19 十一月 2024 20:20:50 +0800
Subject: [PATCH] 删除隐私模块的期限范围时间

---
 zhang-content/src/main/java/com/ruoyi/service/impl/ZAuthorityServiceImpl.java |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZAuthorityServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZAuthorityServiceImpl.java
index 9feff3f..e28ff97 100644
--- a/zhang-content/src/main/java/com/ruoyi/service/impl/ZAuthorityServiceImpl.java
+++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZAuthorityServiceImpl.java
@@ -308,6 +308,7 @@
                 za.setFid(zAuthority.getFid());
                 za.setUid(uid);
                 addData(za);
+                System.out.println(za);
             }
       //  Long []
      //  if(bl)
@@ -329,7 +330,7 @@
                 lqw.eq(ZAuthority::getFid,empowerDto.getFid())
                         .eq(ZAuthority::getAuthority, auri)
                         .eq(ZAuthority::getUid, uid);
-
+                System.out.println("11111111111111111111"+list(lqw));
                 zAuthorityService.remove(lqw);
              //   addData(za);
             }
@@ -350,9 +351,12 @@
 
 
         LambdaQueryWrapper<ZInfoUser> lq = new LambdaQueryWrapper<>();
-        lq.in(ZInfoUser::getUserId, allUserListId);
+        List<ZInfoUser> userInfo = new ArrayList<>();
+        if(allUserListId.size()!=0) {
+            lq.in(ZInfoUser::getUserId, allUserListId);
 
-        List<ZInfoUser> userInfo = zInfoUserService.list(lq);
+            userInfo = zInfoUserService.list(lq);
+        }
       //  Map<Long, String> usi = userInfo.stream().collect(Collectors.toMap(ZInfoUser::getUserId,ZInfoUser::getNickName));
         return AjaxResult.success(userInfo);
     }

--
Gitblit v1.9.1