| | |
| | | return deptMapper.selectDeptList(dept); |
| | | } |
| | | |
| | | @Override |
| | | @DataScope(deptAlias = "d") |
| | | public List<SysDept> selectDeptList11(SysDept dept) { |
| | | return deptMapper.selectDeptTreeList1(); |
| | | } |
| | | |
| | | /** |
| | | * 查询部门树结构信息 |
| | | * |
| | |
| | | @Override |
| | | public List<TreeSelect> selectDeptTreeList(SysDept dept) { |
| | | List<SysDept> depts = SpringUtils.getAopProxy(this).selectDeptList(dept); |
| | | return buildDeptTreeSelect(depts); |
| | | } |
| | | |
| | | @Override |
| | | public List<TreeSelect> selectDeptTreeList1(SysDept dept) { |
| | | List<SysDept> depts = SpringUtils.getAopProxy(this).selectDeptList11(dept); |
| | | return buildDeptTreeSelect(depts); |
| | | } |
| | | |
| | |
| | | */ |
| | | @Override |
| | | public int insertDept(SysDept dept) { |
| | | // TODO: 2023/2/17 新增部门 时候查看父项 |
| | | Long parentId = dept.getParentId(); |
| | | if(null ==parentId){ |
| | | parentId=100L; |