update 优化 用户管理 只查询未禁用的部门角色岗位数据

This commit is contained in:
疯狂的狮子Li
2023-08-07 18:14:11 +08:00
parent 2f3dbbfe32
commit ed4df16201
2 changed files with 9 additions and 2 deletions

View File

@ -72,6 +72,8 @@ public class SysDeptServiceImpl implements ISysDeptService, DeptService {
*/
@Override
public List<Tree<Long>> selectDeptTreeList(SysDept dept) {
// 只查询未禁用部门
dept.setStatus(UserConstants.DEPT_NORMAL);
List<SysDept> depts = this.selectDeptList(dept);
return buildDeptTreeSelect(depts);
}