| | |
| | | */ |
| | | package org.sxkj.system.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.sxkj.common.node.TreeStringNode; |
| | | import org.sxkj.system.entity.Dept; |
| | | import org.sxkj.system.excel.DeptExcel; |
| | | import org.sxkj.system.excel.DeptImportExcel; |
| | | import org.sxkj.system.param.DeptExportParam; |
| | | import org.sxkj.system.param.DeptPageParam; |
| | | import org.sxkj.system.vo.DeptVO; |
| | | |
| | | import java.util.List; |
| | |
| | | * @param parentId |
| | | * @return |
| | | */ |
| | | List<DeptVO> lazyTree(String tenantId, Long parentId,Integer level); |
| | | List<DeptVO> lazyTree(String tenantId, Long parentId, Integer level); |
| | | |
| | | /** |
| | | * 获取部门ID |
| | |
| | | |
| | | /** |
| | | * 获取部门树形结构 |
| | | * |
| | | * @param dept |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 自定义详情查询-根据系统配置id |
| | | * |
| | | * @param dept |
| | | * @return |
| | | */ |
| | | DeptVO getDetailBySysConfigId(DeptVO dept); |
| | | DeptVO getDetailBySysConfigId(DeptVO dept); |
| | | |
| | | /** |
| | | * 下拉数据源 |
| | | * |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 查询父级机构信息(一级机构) |
| | | * |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 查询机构树(除本机机构以外的机构) |
| | | * |
| | | * @param deptId |
| | | * @param deviceSn |
| | | * @return |
| | | */ |
| | | List<TreeStringNode> getDeptTreeByNotItself(String deptId,String deviceSn); |
| | | List<TreeStringNode> getDeptTreeByNotItself(String deptId, String deviceSn); |
| | | |
| | | /** |
| | | * 懒加载获取部门树形结构(子集) |
| | | * |
| | | * @param param |
| | | * @param parentId |
| | | * @return |
| | | */ |
| | | List<DeptVO> getChildLazyTree(Map<String, Object> param,Long parentId); |
| | | List<DeptVO> getChildLazyTree(Map<String, Object> param, Long parentId); |
| | | |
| | | /** |
| | | * 部门名称关系map |
| | | * |
| | | * @param deptIds |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 获取部门列表 |
| | | * |
| | | * @param areaCode 区域code |
| | | * @return 部门列表 |
| | | */ |
| | | List<DeptVO> deptsByAreaCode(String areaCode); |
| | | |
| | | /** |
| | | * @param page |
| | | * @param deptPageParam |
| | | * @return |
| | | */ |
| | | IPage<DeptVO> selectDeptPage(IPage<DeptVO> page, DeptPageParam deptPageParam); |
| | | |
| | | /** |
| | | * 导入部门 |
| | | * |
| | | * @param data |
| | | * @param isCovered |
| | | */ |
| | | void importDept(List<DeptImportExcel> data, Boolean isCovered); |
| | | |
| | | /** |
| | | * 导出部门 |
| | | * |
| | | * @param dept |
| | | * @return |
| | | */ |
| | | List<DeptExcel> exportDept(DeptExportParam dept); |
| | | |
| | | /** |
| | | * 获取部门详情(包含区域名称) |
| | | * |
| | | * @param dept 部门对象,包含查询条件 |
| | | * @return 部门详情VO,包含区域名称 |
| | | */ |
| | | DeptVO getDetailWithAreaName(Dept dept); |
| | | } |