根据roleNames获取用户列表
This commit is contained in:
parent
8fa55acb45
commit
960d76f4f0
|
|
@ -53,6 +53,8 @@ public class SysUser extends BaseEntity {
|
||||||
@Excel(name = "登录名称")
|
@Excel(name = "登录名称")
|
||||||
private String userName;
|
private String userName;
|
||||||
|
|
||||||
|
private String[] userNames;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户昵称
|
* 用户昵称
|
||||||
*/
|
*/
|
||||||
|
|
@ -235,6 +237,14 @@ public class SysUser extends BaseEntity {
|
||||||
this.userName = userName;
|
this.userName = userName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String[] getUserNames() {
|
||||||
|
return userNames;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setUserNames(String[] userNames) {
|
||||||
|
this.userNames = userNames;
|
||||||
|
}
|
||||||
|
|
||||||
@Email(message = "邮箱格式不正确")
|
@Email(message = "邮箱格式不正确")
|
||||||
@Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符")
|
@Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符")
|
||||||
public String getEmail() {
|
public String getEmail() {
|
||||||
|
|
|
||||||
|
|
@ -156,6 +156,12 @@
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
|
<if test="userNames != null and userNames.length > 0">
|
||||||
|
and u.user_name in
|
||||||
|
<foreach collection="userNames" item="item" index="index" separator="," open="(" close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
<include refid="com.bonus.system.mapper.DataScopeMapper.dataScopeFilter"/>
|
<include refid="com.bonus.system.mapper.DataScopeMapper.dataScopeFilter"/>
|
||||||
GROUP BY u.user_id
|
GROUP BY u.user_id
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue