Browse Source

Merge branch 'develop' of gitadmin/tuoheng_telecomumale into release

tags/v1.0.0^2
chengwang 1 year ago
parent
commit
77528b809f
3 changed files with 7 additions and 1 deletions
  1. +5
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/request/user/QueryUserPageListRequest.java
  2. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/role/RoleServiceImpl.java
  3. +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

*/ */
private Integer roleId; private Integer roleId;


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

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

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/role/RoleServiceImpl.java View File

QueryWrapper<Role> queryWrapper = new QueryWrapper<>(); QueryWrapper<Role> queryWrapper = new QueryWrapper<>();
// 租户ID // 租户ID
//不展示超管 //不展示超管
queryWrapper.ne("code", "001");
queryWrapper.ne("code", "100001");
queryWrapper.eq("tenant_id", CurrentUserUtil.getTenantId()); queryWrapper.eq("tenant_id", CurrentUserUtil.getTenantId());
// queryWrapper.eq("tenant_id", CurrentUserUtil.getTenantId()); // queryWrapper.eq("tenant_id", CurrentUserUtil.getTenantId());
queryWrapper.eq("status", 1); queryWrapper.eq("status", 1);

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

<if test="request.username != null and request.username != ''"> and username like concat('%', #{request.username}, '%') </if> <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.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.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"> <if test="request.deptIdList != null and request.deptIdList.size() > 0">
and dept_id in and dept_id in
<foreach item="deptId" collection="request.deptIdList" open="(" separator="," close=")"> <foreach item="deptId" collection="request.deptIdList" open="(" separator="," close=")">

Loading…
Cancel
Save