1:用户管理页面优化 2:角色管理页面优化 3:分配角色权限优化

This commit is contained in:
2025-10-11 12:19:34 +08:00
parent 65e2d4b92f
commit 96da469bef
13 changed files with 382 additions and 335 deletions
@@ -2,21 +2,24 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.central.user.mapper.SysUserMapper">
<sql id="where">
<where>
t.is_del=0
<if test="u.tenantIds != null and u.tenantIds.size > 0">
and t.company in
<foreach collection="u.tenantIds" item="tid" open="(" separator="," close=")">
#{tid}
</foreach>
</if>
<if test="u.id != null and u.id != ''">
and t.id like concat('%', #{u.id}, '%')
</if>
<sql id="where">
<where>
t.is_del=0
<if test="u.tenantIds != null and u.tenantIds.size > 0">
and t.company in
<foreach collection="u.tenantIds" item="tid" open="(" separator="," close=")">
#{tid}
</foreach>
</if>
<if test="u.id != null and u.id != ''">
and t.id like concat('%', #{u.id}, '%')
</if>
<if test="u.username != null and u.username != ''">
and t.username like concat('%', #{u.username}, '%')
</if>
<if test="u.mobile != null and u.mobile != ''">
and t.mobile like concat('%', #{u.mobile}, '%')
</if>
<if test="u.nickname != null and u.nickname != ''">
and t.nickname like concat('%', #{u.nickname}, '%')
</if>
@@ -26,18 +29,6 @@
<if test="u.type != null and u.type != ''">
and t.type = #{u.type}
</if>
<if test="u.searchKey != null and u.searchKey != '' and u.searchKey=='user_id'">
and t.id like concat('%', #{u.searchValue}, '%')
</if>
<if test="u.searchKey != null and u.searchKey != '' and u.searchKey=='username'">
and t.username like concat('%', #{u.searchValue}, '%')
</if>
<if test="u.searchKey != null and u.searchKey != '' and u.searchKey=='nick_name'">
and t.nickname like concat('%', #{u.searchValue}, '%')
</if>
<if test="u.searchKey != null and u.searchKey != '' and u.searchKey=='mobile'">
and t.mobile like concat('%', #{u.searchValue}, '%')
</if>
</where>
</sql>
@@ -46,4 +37,4 @@
<include refid="where" />
order by t.id desc
</select>
</mapper>
</mapper>