From ac5c44393f2e4c83c82ab7ca8912f603ffe6a072 Mon Sep 17 00:00:00 2001 From: ly19960718 <1622779752@qq.com> Date: Fri, 11 Jun 2021 10:14:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E7=AB=A0=E6=95=B0=E6=8D=AE=E5=B0=81?= =?UTF-8?q?=E8=A3=85=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/departmentbase/DepartmentBaseController.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/tenlion/twoduty/controller/api/departmentbase/DepartmentBaseController.java b/src/main/java/com/tenlion/twoduty/controller/api/departmentbase/DepartmentBaseController.java index b946b7a..571b3e2 100644 --- a/src/main/java/com/tenlion/twoduty/controller/api/departmentbase/DepartmentBaseController.java +++ b/src/main/java/com/tenlion/twoduty/controller/api/departmentbase/DepartmentBaseController.java @@ -125,6 +125,9 @@ public class DepartmentBaseController extends DefaultBaseController { return list; } List listUsers = roleUserService.listUserId(roleDTO.getRoleId()); + if(listUsers.size() == 0){ + return list; + } List userIds = departmentUserService.listUserId(departmentId, listUsers); if(userIds.size() == 0){ return list;