优化部门列表树排除条件

This commit is contained in:
RuoYi
2021-08-30 15:05:33 +08:00
parent 08fc4740d5
commit f68f4824cd
3 changed files with 22 additions and 5 deletions

View File

@ -189,7 +189,7 @@ public class SysDeptController extends BaseController
public List<Ztree> treeDataExcludeChild(@PathVariable(value = "excludeId", required = false) Long excludeId)
{
SysDept dept = new SysDept();
dept.setDeptId(excludeId);
dept.setExcludeId(excludeId);
List<Ztree> ztrees = deptService.selectDeptTreeExcludeChild(dept);
return ztrees;
}