IDeptService.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. /**
  6. * 部门管理 服务层
  7. *
  8. * @author ruoyi
  9. */
  10. public interface IDeptService
  11. {
  12. /**
  13. * 查询部门管理数据
  14. *
  15. * @return 部门信息集合
  16. */
  17. public List<Dept> selectDeptList(Dept dept);
  18. /**
  19. * 查询部门所有数据
  20. *
  21. * @return 部门信息集合
  22. */
  23. public List<Dept> selectDeptAll();
  24. /**
  25. * 查询部门管理树
  26. *
  27. * @return 所有部门信息
  28. */
  29. public List<Map<String, Object>> selectDeptTree();
  30. /**
  31. * 查询部门人数
  32. *
  33. * @param parentId 父部门ID
  34. * @return 结果
  35. */
  36. public int selectDeptCount(Long parentId);
  37. /**
  38. * 查询部门是否存在用户
  39. *
  40. * @param deptId 部门ID
  41. * @return 结果 true 存在 false 不存在
  42. */
  43. public boolean checkDeptExistUser(Long deptId);
  44. /**
  45. * 删除部门管理信息
  46. *
  47. * @param deptId 部门ID
  48. * @return 结果
  49. */
  50. public int deleteDeptById(Long deptId);
  51. /**
  52. * 保存部门信息
  53. *
  54. * @param dept 部门信息
  55. * @return 结果
  56. */
  57. public int saveDept(Dept dept);
  58. /**
  59. * 根据部门ID查询信息
  60. *
  61. * @param deptId 部门ID
  62. * @return 部门信息
  63. */
  64. public Dept selectDeptById(Long deptId);
  65. /**
  66. * 校验部门名称是否唯一
  67. *
  68. * @param dept 部门信息
  69. * @return 结果
  70. */
  71. public String checkDeptNameUnique(Dept dept);
  72. }