Browse Source

用户列表根据所属部门筛选

tags/v1.0.0^2
chengwang 1 year ago
parent
commit
287abc23d1
2 changed files with 6 additions and 0 deletions
  1. +5
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/request/user/QueryUserPageListRequest.java
  2. +1
    -0
      tuoheng-service/tuoheng-admin/src/main/resources/mapper/UserMapper.xml

+ 5
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/request/user/QueryUserPageListRequest.java View File

@@ -31,6 +31,11 @@ public class QueryUserPageListRequest extends BaseQuery {
*/
private Integer roleId;

/**
* 部门id
*/
private String deptId;

/**
* 部门及子部门Id列表
*/

+ 1
- 0
tuoheng-service/tuoheng-admin/src/main/resources/mapper/UserMapper.xml View File

@@ -95,6 +95,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="request.username != null and request.username != ''"> and username like concat('%', #{request.username}, '%') </if>
<if test="request.realname != null and request.realname != ''"> and realname like concat('%', #{request.realname}, '%') </if>
<if test="request.roleId != null and request.roleId != 0"> and role_id = #{request.roleId} </if>
<if test="request.deptId != null and request.deptId != ''"> and dept_id = #{request.deptId} </if>
<if test="request.deptIdList != null and request.deptIdList.size() > 0">
and dept_id in
<foreach item="deptId" collection="request.deptIdList" open="(" separator="," close=")">

Loading…
Cancel
Save