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;