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