角色管理》配置用户增加部门选择器

This commit is contained in:
10002327 2024-07-31 17:39:45 +08:00
parent f7818bd6fa
commit 36a2cec93e
2 changed files with 9 additions and 1 deletions

View File

@ -71,6 +71,9 @@ public class AuthorityUserQuery implements Serializable {
*/
@ApiModelProperty(value = "当前页")
private Long page = 1L;
@ApiModelProperty(value = "当前选择的部门ID查找子级数据")
private String parentTreeId;
private static final long serialVersionUID = 1L;
}

View File

@ -84,6 +84,11 @@
<if test="query.departRowId!=null ">
and a.depart_row_id=#{query.departRowId}
</if>
<if test="query.parentTreeId !=null ">
and b.parent_tree LIKE concat('%',#{query.parentTreeId},'%')
</if>
</if>
</where>
</select>