| | |
| | | package com.project.system.service.impl; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.project.common.annotation.DataScope; |
| | | import com.project.common.constant.UserConstants; |
| | | import com.project.common.core.domain.TreeSelect; |
| | |
| | | import com.project.system.mapper.SysDeptMapper; |
| | | import com.project.system.mapper.SysRoleMapper; |
| | | import com.project.system.service.ISysDeptService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 部门管理 服务实现 |
| | |
| | | return deptMapper.deleteDeptById(deptId); |
| | | } |
| | | |
| | | @Override |
| | | public Long getCheckDeptIdByLoginDeptId(Long deptId) |
| | | { |
| | | SysDept loginDept = selectDeptById(deptId); |
| | | if (loginDept.getParentId()==101){ |
| | | return loginDept.getDeptId(); |
| | | } else { |
| | | return getCheckDeptIdByLoginDeptId(loginDept.getParentId()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 递归列表 |
| | | */ |