From 307fbfe65a2436954e377531f7c07e2a566ad53e Mon Sep 17 00:00:00 2001 From: zjh <zjh@888> Date: 星期五, 02 二月 2024 11:31:17 +0800 Subject: [PATCH] zjh 本地 2024/02/2 -1 --- ltkj-system/src/main/java/com/ltkj/system/service/impl/SysDeptServiceImpl.java | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/ltkj-system/src/main/java/com/ltkj/system/service/impl/SysDeptServiceImpl.java b/ltkj-system/src/main/java/com/ltkj/system/service/impl/SysDeptServiceImpl.java index 793e94d..77f18ee 100644 --- a/ltkj-system/src/main/java/com/ltkj/system/service/impl/SysDeptServiceImpl.java +++ b/ltkj-system/src/main/java/com/ltkj/system/service/impl/SysDeptServiceImpl.java @@ -50,6 +50,12 @@ return deptMapper.selectDeptList(dept); } + @Override + @DataScope(deptAlias = "d") + public List<SysDept> selectDeptList11(SysDept dept) { + return deptMapper.selectDeptTreeList1(); + } + /** * 鏌ヨ閮ㄩ棬鏍戠粨鏋勪俊鎭� * @@ -59,6 +65,12 @@ @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); } @@ -199,7 +211,6 @@ */ @Override public int insertDept(SysDept dept) { - // TODO: 2023/2/17 鏂板閮ㄩ棬 鏃跺�欐煡鐪嬬埗椤� Long parentId = dept.getParentId(); if(null ==parentId){ parentId=100L; -- Gitblit v1.8.0