|
|
@@ -54,6 +54,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userName != null and userName != ''">
|
|
|
AND u.user_name like concat('%', #{userName}, '%')
|
|
|
</if>
|
|
|
+ <if test="nickName != null and nickName != ''">
|
|
|
+ AND u.nick_name like concat('%', #{nickName}, '%')
|
|
|
+ </if>
|
|
|
<if test="status != null and status != ''">
|
|
|
AND u.status = #{status}
|
|
|
</if>
|
|
|
@@ -66,6 +69,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="params.endTime != null and params.endTime != ''">
|
|
|
AND date_format(u.create_time,'%Y%m%d') <= date_format(#{params.endTime},'%Y%m%d')
|
|
|
</if>
|
|
|
+ <if test="roleId != null">
|
|
|
+ AND user_id in (SELECT user_id FROM sys_user_role WHERE role_id = #{roleId})
|
|
|
+ </if>
|
|
|
<!-- データ範囲フィルタリング -->
|
|
|
${params.dataScope}
|
|
|
</select>
|