SysDeptMapper.java 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. package com.leromro.system.mapper;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.leromro.common.core.domain.entity.SysDept;
  4. import org.apache.ibatis.annotations.Param;
  5. import java.util.List;
  6. /**
  7. * 部门管理 数据层
  8. *
  9. * @author ruoyi
  10. */
  11. public interface SysDeptMapper extends BaseMapper<SysDept>
  12. {
  13. /**
  14. * 查询部门管理数据
  15. *
  16. * @param dept 部门信息
  17. * @return 部门信息集合
  18. */
  19. public List<SysDept> selectDeptList(SysDept dept);
  20. /**
  21. * 根据角色ID查询部门树信息
  22. *
  23. * @param roleId 角色ID
  24. * @param deptCheckStrictly 部门树选择项是否关联显示
  25. * @return 选中部门列表
  26. */
  27. public List<Long> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);
  28. /**
  29. * 根据部门ID查询信息
  30. *
  31. * @param deptId 部门ID
  32. * @return 部门信息
  33. */
  34. public SysDept selectDeptById(Long deptId);
  35. /**
  36. * 根据ID查询所有子部门
  37. *
  38. * @param deptId 部门ID
  39. * @return 部门列表
  40. */
  41. public List<SysDept> selectChildrenDeptById(Long deptId);
  42. /**
  43. * 根据ID查询所有子部门(正常状态)
  44. *
  45. * @param deptId 部门ID
  46. * @return 子部门数
  47. */
  48. public int selectNormalChildrenDeptById(Long deptId);
  49. List<SysDept> selectDeptByParentId(@Param("deptId") Long deptId, @Param("areaType") String areaType);
  50. /**
  51. * 是否存在子节点
  52. *
  53. * @param deptId 部门ID
  54. * @return 结果
  55. */
  56. public int hasChildByDeptId(Long deptId);
  57. /**
  58. * 查询部门是否存在用户
  59. *
  60. * @param deptId 部门ID
  61. * @return 结果
  62. */
  63. public int checkDeptExistUser(Long deptId);
  64. /**
  65. * 校验部门名称是否唯一
  66. *
  67. * @param deptName 部门名称
  68. * @param parentId 父部门ID
  69. * @return 结果
  70. */
  71. public SysDept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId);
  72. /**
  73. * 新增部门信息
  74. *
  75. * @param dept 部门信息
  76. * @return 结果
  77. */
  78. public int insertDept(SysDept dept);
  79. /**
  80. * 修改部门信息
  81. *
  82. * @param dept 部门信息
  83. * @return 结果
  84. */
  85. public int updateDept(SysDept dept);
  86. /**
  87. * 修改所在部门正常状态
  88. *
  89. * @param deptIds 部门ID组
  90. */
  91. public void updateDeptStatusNormal(Long[] deptIds);
  92. /**
  93. * 修改子元素关系
  94. *
  95. * @param depts 子元素
  96. * @return 结果
  97. */
  98. public int updateDeptChildren(@Param("depts") List<SysDept> depts);
  99. /**
  100. * 删除部门管理信息
  101. *
  102. * @param deptId 部门ID
  103. * @return 结果
  104. */
  105. public int deleteDeptById(Long deptId);
  106. List<SysDept> getAllOrgList();
  107. List<SysDept> getAlldept();
  108. String selectPointList(Long deptId);
  109. SysDept getAreaByServiceCenterId(Long serviceCenterId);
  110. }