|
|
|
@ -4,6 +4,8 @@ import java.util.ArrayList;
|
|
|
|
|
import java.util.Iterator;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import com.ruoyi.common.core.constant.UserConstants;
|
|
|
|
@ -42,7 +44,7 @@ public class SysDeptServiceImpl implements ISysDeptService
|
|
|
|
|
* @return 部门信息集合
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@DataScope(deptAlias = "d")
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public List<SysDept> selectDeptList(SysDept dept)
|
|
|
|
|
{
|
|
|
|
|
return deptMapper.selectDeptList(dept);
|
|
|
|
@ -55,6 +57,7 @@ public class SysDeptServiceImpl implements ISysDeptService
|
|
|
|
|
* @return 部门树信息集合
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public List<TreeSelect> selectDeptTreeList(SysDept dept)
|
|
|
|
|
{
|
|
|
|
|
List<SysDept> depts = SpringUtils.getAopProxy(this).selectDeptList(dept);
|
|
|
|
|