fix:修复增删改查组件下角色筛选未生效问题
This commit is contained in:
@@ -27,6 +27,9 @@ public class UserPageQuery extends BasePageQuery {
|
|||||||
@Schema(description="部门ID")
|
@Schema(description="部门ID")
|
||||||
private Long deptId;
|
private Long deptId;
|
||||||
|
|
||||||
|
@Schema(description = "角色ID")
|
||||||
|
private List<Long> roleIds;
|
||||||
|
|
||||||
@Schema(description="创建时间范围")
|
@Schema(description="创建时间范围")
|
||||||
private List<String> createTime;
|
private List<String> createTime;
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,12 @@
|
|||||||
AND u.create_time <= #{endDate}
|
AND u.create_time <= #{endDate}
|
||||||
</if>
|
</if>
|
||||||
</if>
|
</if>
|
||||||
|
<if test="queryParams.roleIds != null and queryParams.roleIds.size() > 0">
|
||||||
|
AND sur.role_id IN
|
||||||
|
<foreach item="roleId" collection="queryParams.roleIds" open="(" separator="," close=")">
|
||||||
|
#{roleId}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
GROUP BY
|
GROUP BY
|
||||||
u.id
|
u.id
|
||||||
|
|||||||
Reference in New Issue
Block a user