IDeptService.java 2.1 KB

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