From dcdfc93b50febf61301832d91dfcddcfa1ca5403 Mon Sep 17 00:00:00 2001
From: 1 <1@123>
Date: 星期三, 14 五月 2025 14:06:36 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/system/controller/RoleController.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/system/controller/RoleController.java b/src/main/java/com/zy/system/controller/RoleController.java
index 2657b40..e14c5e1 100644
--- a/src/main/java/com/zy/system/controller/RoleController.java
+++ b/src/main/java/com/zy/system/controller/RoleController.java
@@ -59,9 +59,9 @@
             }
         }
 
-        List<Role> roleList = roleService.selectRoleList(leaderIdList,curr,limit);
+        List<Role> roleList = roleService.selectRoleList(leaderIdList.isEmpty() ? null:leaderIdList,curr,limit);
         Page<Role> page = new Page<Role>(curr,limit).setRecords(roleList);
-        page.setTotal(roleService.selectRoleListTotal(leaderIdList));
+        page.setTotal(roleService.selectRoleListTotal(leaderIdList.isEmpty() ? null:leaderIdList));
         return R.ok(page);
     }
 

--
Gitblit v1.9.1