diff --git a/src/main/java/com/glxp/api/req/auth/FilterAuthUserRequest.java b/src/main/java/com/glxp/api/req/auth/FilterAuthUserRequest.java index d3f46a12..55a5a7c0 100644 --- a/src/main/java/com/glxp/api/req/auth/FilterAuthUserRequest.java +++ b/src/main/java/com/glxp/api/req/auth/FilterAuthUserRequest.java @@ -11,6 +11,7 @@ import java.util.List; public class FilterAuthUserRequest extends ListPageRequest { private String userName; + private String deptName; private Integer userFlag; diff --git a/src/main/resources/mybatis/mapper/auth/AuthAdminDao.xml b/src/main/resources/mybatis/mapper/auth/AuthAdminDao.xml index cb73d38b..781c5f64 100644 --- a/src/main/resources/mybatis/mapper/auth/AuthAdminDao.xml +++ b/src/main/resources/mybatis/mapper/auth/AuthAdminDao.xml @@ -21,6 +21,9 @@ AND userName LIKE CONCAT('%', #{userName}, '%') + + AND auth_dept.name LIKE CONCAT('%', #{deptName}, '%') + AND userName != #{neUserName}