Преглед изворни кода

Merge branch 'develop' of gitadmin/tuoheng_telecomumale into release

tags/v1.0.0^2
chengwang пре 1 година
родитељ
комит
77528b809f
3 измењених фајлова са 7 додато и 1 уклоњено
  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 Прегледај датотеку

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

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

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

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/role/RoleServiceImpl.java Прегледај датотеку

@@ -210,7 +210,7 @@ public class RoleServiceImpl implements IRoleService {
QueryWrapper<Role> queryWrapper = new QueryWrapper<>();
// 租户ID
//不展示超管
queryWrapper.ne("code", "001");
queryWrapper.ne("code", "100001");
queryWrapper.eq("tenant_id", CurrentUserUtil.getTenantId());
// queryWrapper.eq("tenant_id", CurrentUserUtil.getTenantId());
queryWrapper.eq("status", 1);

+ 1
- 0
tuoheng-service/tuoheng-admin/src/main/resources/mapper/UserMapper.xml Прегледај датотеку

@@ -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…
Откажи
Сачувај