根据userIds获取用户列表
This commit is contained in:
parent
54f3855a28
commit
0c631ec70f
|
|
@ -139,6 +139,11 @@ public class SysUser extends BaseEntity {
|
|||
*/
|
||||
private Long roleId;
|
||||
|
||||
/**
|
||||
* 用户组
|
||||
*/
|
||||
private Long[] userIds;
|
||||
|
||||
/**
|
||||
* 登录权限
|
||||
*/
|
||||
|
|
@ -345,6 +350,14 @@ public class SysUser extends BaseEntity {
|
|||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public Long[] getUserIds() {
|
||||
return userIds;
|
||||
}
|
||||
|
||||
public void setUserIds(Long[] userIds) {
|
||||
this.userIds = userIds;
|
||||
}
|
||||
|
||||
public String getLoginType() {
|
||||
return loginType;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -144,6 +144,12 @@
|
|||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="userIds != null and userIds.length > 0">
|
||||
and u.user_id in
|
||||
<foreach collection="userIds" item="item" index="index" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<include refid="com.bonus.system.mapper.DataScopeMapper.dataScopeFilter"/>
|
||||
GROUP BY u.user_id
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Reference in New Issue