ISysDeptService.java 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. package com.ruoyi.system.service;
  2. import java.util.List;
  3. import com.ruoyi.common.core.domain.Ztree;
  4. import com.ruoyi.system.domain.SysDept;
  5. import com.ruoyi.system.domain.SysRole;
  6. /**
  7. * 部门管理 服务层
  8. *
  9. * @author ruoyi
  10. */
  11. public interface ISysDeptService
  12. {
  13. /**
  14. * 查询部门管理数据
  15. *
  16. * @param dept 部门信息
  17. * @return 部门信息集合
  18. */
  19. public List<SysDept> selectDeptList(SysDept dept);
  20. /**
  21. * 查询部门管理树
  22. *
  23. * @param dept 部门信息
  24. * @return 所有部门信息
  25. */
  26. public List<Ztree> selectDeptTree(SysDept dept);
  27. /**
  28. * 根据角色ID查询菜单
  29. *
  30. * @param role 角色对象
  31. * @return 菜单列表
  32. */
  33. public List<Ztree> roleDeptTreeData(SysRole role);
  34. /**
  35. * 查询部门人数
  36. *
  37. * @param parentId 父部门ID
  38. * @return 结果
  39. */
  40. public int selectDeptCount(Long parentId);
  41. /**
  42. * 查询部门是否存在用户
  43. *
  44. * @param deptId 部门ID
  45. * @return 结果 true 存在 false 不存在
  46. */
  47. public boolean checkDeptExistUser(Long deptId);
  48. /**
  49. * 删除部门管理信息
  50. *
  51. * @param deptId 部门ID
  52. * @return 结果
  53. */
  54. public int deleteDeptById(Long deptId);
  55. /**
  56. * 新增保存部门信息
  57. *
  58. * @param dept 部门信息
  59. * @return 结果
  60. */
  61. public int insertDept(SysDept dept);
  62. /**
  63. * 修改保存部门信息
  64. *
  65. * @param dept 部门信息
  66. * @return 结果
  67. */
  68. public int updateDept(SysDept dept);
  69. /**
  70. * 根据部门ID查询信息
  71. *
  72. * @param deptId 部门ID
  73. * @return 部门信息
  74. */
  75. public SysDept selectDeptById(Long deptId);
  76. /**
  77. * 根据ID查询所有子部门(正常状态)
  78. *
  79. * @param deptId 部门ID
  80. * @return 子部门数
  81. */
  82. public int selectNormalChildrenDeptById(Long deptId);
  83. /**
  84. * 校验部门名称是否唯一
  85. *
  86. * @param dept 部门信息
  87. * @return 结果
  88. */
  89. public String checkDeptNameUnique(SysDept dept);
  90. }