| | |
| | | package org.springblade.modules.system.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springblade.modules.system.entity.Dept; |
| | | import org.springblade.modules.system.vo.DeptVO; |
| | | |
| | |
| | | * @param tenantId |
| | | * @return |
| | | */ |
| | | List<DeptVO> tree(String tenantId); |
| | | List<DeptVO> tree(String tenantId, Long id); |
| | | |
| | | /** |
| | | * 懒加载获取树形节点 |
| | |
| | | */ |
| | | List<String> getDeptNames(Long[] ids); |
| | | |
| | | /** |
| | | * 查询当前机构信息 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | DeptVO getDeptById(@Param("id") Long id); |
| | | |
| | | /** |
| | | * 查询网格对应的机构信息(包含父级机构名称) |
| | | * |
| | | * @return |
| | | */ |
| | | List<DeptVO> getGridDeptAndParentList(); |
| | | } |