ISysDeptService.java 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. package com.sooka.system.service;
  2. import java.util.List;
  3. import java.util.Map;
  4. import com.sooka.common.core.domain.Ztree;
  5. import com.sooka.system.domain.SysDept;
  6. import com.sooka.system.domain.SysRole;
  7. /**
  8. * 部门管理 服务层
  9. *
  10. * @author lei_wang
  11. */
  12. public interface ISysDeptService
  13. {
  14. /**
  15. * 查询部门管理数据
  16. *
  17. * @param dept 部门信息
  18. * @return 部门信息集合
  19. */
  20. public List<SysDept> selectDeptList(SysDept dept);
  21. /**
  22. * 查询部门管理树
  23. *
  24. * @param dept 部门信息
  25. * @return 所有部门信息
  26. */
  27. public List<Ztree> selectDeptTree(SysDept dept);
  28. /**
  29. * 查询部门管理树
  30. *
  31. * @param dept 部门信息
  32. * @return 所有部门信息
  33. */
  34. public List<Ztree> selectDeptTreeList(SysDept dept);
  35. /**
  36. * 查询部门管理树(排除下级)
  37. *
  38. * @param dept 部门信息
  39. * @return 所有部门信息
  40. */
  41. public List<Ztree> selectDeptTreeExcludeChild(SysDept dept);
  42. /**
  43. * 根据角色ID查询菜单
  44. *
  45. * @param role 角色对象
  46. * @return 菜单列表
  47. */
  48. public List<Ztree> roleDeptTreeData(SysRole role);
  49. /**
  50. * 查询部门人数
  51. *
  52. * @param parentId 父部门ID
  53. * @return 结果
  54. */
  55. public int selectDeptCount(Long parentId);
  56. /**
  57. * 查询部门是否存在用户
  58. *
  59. * @param deptId 部门ID
  60. * @return 结果 true 存在 false 不存在
  61. */
  62. public boolean checkDeptExistUser(Long deptId);
  63. /**
  64. * 删除部门管理信息
  65. *
  66. * @param deptId 部门ID
  67. * @return 结果
  68. */
  69. public int deleteDeptById(Long deptId);
  70. /**
  71. * 新增保存部门信息
  72. *
  73. * @param dept 部门信息
  74. * @return 结果
  75. */
  76. public int insertDept(SysDept dept);
  77. /**
  78. * 修改保存部门信息
  79. *
  80. * @param dept 部门信息
  81. * @return 结果
  82. */
  83. public int updateDept(SysDept dept);
  84. /**
  85. * 根据部门ID查询信息
  86. *
  87. * @param deptId 部门ID
  88. * @return 部门信息
  89. */
  90. public SysDept selectDeptById(Long deptId);
  91. /**
  92. * 查询部门管理数据
  93. *
  94. * @param deptIds 部门ID集合
  95. * @return 部门信息集合
  96. */
  97. public List<SysDept> selectDeptByIds(Long[] deptIds);
  98. /**
  99. * 根据ID查询所有子部门(正常状态)
  100. *
  101. * @param deptId 部门ID
  102. * @return 子部门数
  103. */
  104. public int selectNormalChildrenDeptById(Long deptId);
  105. /**
  106. * 校验部门名称是否唯一
  107. *
  108. * @param dept 部门信息
  109. * @return 结果
  110. */
  111. public String checkDeptNameUnique(SysDept dept);
  112. /**
  113. * 对象转部门树
  114. *
  115. * @param deptList 部门列表
  116. * @return 树结构列表
  117. */
  118. public List<Ztree> initZtree(List<SysDept> deptList);
  119. /**
  120. * 部门查询街道指挥中心
  121. *
  122. * @param deptId 部门ID
  123. * @return 街道指挥中心
  124. */
  125. public SysDept selectPost7(Long deptId);
  126. /**
  127. * 指挥中心查询区级指挥中心
  128. *
  129. * @param deptId 指挥中心ID
  130. * @return 区级指挥中心
  131. */
  132. public SysDept selectPost5(Long deptId);
  133. /**
  134. * 查询部门下级树
  135. *
  136. * @param dept 部门信息
  137. * @return 所有部门信息
  138. */
  139. List<SysDept> selectDeptChildList(SysDept dept);
  140. /**
  141. * 获取当前登录人父ID的兄弟IDList
  142. * */
  143. List<SysDept> selectParentSiblings(Long deptId);
  144. /**
  145. * 获取一级列表
  146. * */
  147. List<SysDept> findCitys(Long postId);
  148. }