提交 211504a6 authored 作者: 000516's avatar 000516

查询权限分配下用户列表,未分配用户/已分配用户

......@@ -271,7 +271,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
AND su.create_time BETWEEN #{sysUserWq.beginTime} AND #{sysUserWq.endTime}
</if>
<if test="sysUserWq.roleId != null">
and su.user_id in (select user_id from sys_user_role where role_id = #{sysUserWq.roleId})
<if test="sysUserWq.existRole != null and !sysUserWq.existRole">
and su.user_id not in (select user_id from sys_user_role where role_id = #{sysUserWq.roleId})
</if>
<if test="sysUserWq.existRole == null or sysUserWq.existRole">
and su.user_id in (select user_id from sys_user_role where role_id = #{sysUserWq.roleId})
</if>
</if>
</select>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论