角色筛选
This commit is contained in:
parent
f8b8cb37c0
commit
104885dfc6
|
|
@ -170,7 +170,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
WHERE
|
WHERE
|
||||||
u.STATUS = '0'
|
u.STATUS = '0'
|
||||||
AND u.del_flag = '0'
|
AND u.del_flag = '0'
|
||||||
|
<if test="roleId != null">
|
||||||
AND r.role_id = #{roleId}
|
AND r.role_id = #{roleId}
|
||||||
|
</if>
|
||||||
|
<if test="roleIds != null">
|
||||||
|
AND r.role_id in
|
||||||
|
<foreach item="roleId" collection="roleIds" open="(" separator="," close=")">
|
||||||
|
#{roleId}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<insert id="insertUser" parameterType="com.bonus.sgzb.system.api.domain.SysUser" useGeneratedKeys="true" keyProperty="userId">
|
<insert id="insertUser" parameterType="com.bonus.sgzb.system.api.domain.SysUser" useGeneratedKeys="true" keyProperty="userId">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue