123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- package com.sooka.system.service;
- import java.util.List;
- import java.util.Map;
- import com.sooka.common.core.domain.Ztree;
- import com.sooka.system.domain.SysDept;
- import com.sooka.system.domain.SysRole;
- /**
- * 部门管理 服务层
- *
- * @author lei_wang
- */
- public interface ISysDeptService
- {
- /**
- * 查询部门管理数据
- *
- * @param dept 部门信息
- * @return 部门信息集合
- */
- public List<SysDept> selectDeptList(SysDept dept);
- /**
- * 查询部门管理树
- *
- * @param dept 部门信息
- * @return 所有部门信息
- */
- public List<Ztree> selectDeptTree(SysDept dept);
- /**
- * 查询部门管理树
- *
- * @param dept 部门信息
- * @return 所有部门信息
- */
- public List<Ztree> selectDeptTreeList(SysDept dept);
- /**
- * 查询部门管理树(排除下级)
- *
- * @param dept 部门信息
- * @return 所有部门信息
- */
- public List<Ztree> selectDeptTreeExcludeChild(SysDept dept);
- /**
- * 根据角色ID查询菜单
- *
- * @param role 角色对象
- * @return 菜单列表
- */
- public List<Ztree> roleDeptTreeData(SysRole role);
- /**
- * 查询部门人数
- *
- * @param parentId 父部门ID
- * @return 结果
- */
- public int selectDeptCount(Long parentId);
- /**
- * 查询部门是否存在用户
- *
- * @param deptId 部门ID
- * @return 结果 true 存在 false 不存在
- */
- public boolean checkDeptExistUser(Long deptId);
- /**
- * 删除部门管理信息
- *
- * @param deptId 部门ID
- * @return 结果
- */
- public int deleteDeptById(Long deptId);
- /**
- * 新增保存部门信息
- *
- * @param dept 部门信息
- * @return 结果
- */
- public int insertDept(SysDept dept);
- /**
- * 修改保存部门信息
- *
- * @param dept 部门信息
- * @return 结果
- */
- public int updateDept(SysDept dept);
- /**
- * 根据部门ID查询信息
- *
- * @param deptId 部门ID
- * @return 部门信息
- */
- public SysDept selectDeptById(Long deptId);
- /**
- * 查询部门管理数据
- *
- * @param deptIds 部门ID集合
- * @return 部门信息集合
- */
- public List<SysDept> selectDeptByIds(Long[] deptIds);
- /**
- * 根据ID查询所有子部门(正常状态)
- *
- * @param deptId 部门ID
- * @return 子部门数
- */
- public int selectNormalChildrenDeptById(Long deptId);
- /**
- * 校验部门名称是否唯一
- *
- * @param dept 部门信息
- * @return 结果
- */
- public String checkDeptNameUnique(SysDept dept);
- /**
- * 对象转部门树
- *
- * @param deptList 部门列表
- * @return 树结构列表
- */
- public List<Ztree> initZtree(List<SysDept> deptList);
- /**
- * 部门查询街道指挥中心
- *
- * @param deptId 部门ID
- * @return 街道指挥中心
- */
- public SysDept selectPost7(Long deptId);
- /**
- * 指挥中心查询区级指挥中心
- *
- * @param deptId 指挥中心ID
- * @return 区级指挥中心
- */
- public SysDept selectPost5(Long deptId);
- /**
- * 查询部门下级树
- *
- * @param dept 部门信息
- * @return 所有部门信息
- */
- List<SysDept> selectDeptChildList(SysDept dept);
- /**
- * 获取当前登录人父ID的兄弟IDList
- * */
- List<SysDept> selectParentSiblings(Long deptId);
- /**
- * 获取一级列表
- * */
- List<SysDept> findCitys(Long postId);
- }
|