|
@@ -4,6 +4,9 @@ import java.util.ArrayList;
|
|
|
import java.util.Iterator;
|
|
|
import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
+
|
|
|
+import cn.hutool.core.convert.Convert;
|
|
|
+import cn.hutool.core.util.StrUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.leromro.common.annotation.DataScope;
|
|
@@ -12,7 +15,6 @@ import com.leromro.common.core.domain.TreeSelect;
|
|
|
import com.leromro.common.core.domain.entity.SysDept;
|
|
|
import com.leromro.common.core.domain.entity.SysRole;
|
|
|
import com.leromro.common.core.domain.entity.SysUser;
|
|
|
-import com.leromro.common.core.text.Convert;
|
|
|
import com.leromro.common.exception.ServiceException;
|
|
|
import com.leromro.common.utils.SecurityUtils;
|
|
|
import com.leromro.common.utils.StringUtils;
|
|
@@ -57,6 +59,11 @@ public class SysDeptServiceImpl implements ISysDeptService
|
|
|
@Override
|
|
|
public List<TreeSelect> selectDeptTreeList(SysDept dept)
|
|
|
{
|
|
|
+ SysDept sysDept = deptMapper.selectDeptById(SecurityUtils.getDeptId());
|
|
|
+ dept.setDeptId(sysDept.getDeptId());
|
|
|
+// List<Long> longList = Convert.toList(Long.class, StrUtil.split(sysDept.getAncestors(), ','));
|
|
|
+// longList.add(sysDept.getDeptId());
|
|
|
+// dept.setParentsIds(longList);
|
|
|
List<SysDept> depts = SpringUtils.getAopProxy(this).selectDeptList(dept);
|
|
|
return buildDeptTreeSelect(depts);
|
|
|
}
|