SysDeptMapper.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package com.ruoyi.system.mapper;
  2. import com.ruoyi.common.annotation.DataColumn;
  3. import com.ruoyi.common.annotation.DataPermission;
  4. import com.ruoyi.common.core.domain.entity.SysDept;
  5. import com.ruoyi.common.core.mybatisplus.core.BaseMapperPlus;
  6. import org.apache.ibatis.annotations.Param;
  7. import java.util.List;
  8. /**
  9. * 部门管理 数据层
  10. *
  11. * @author Lion Li
  12. */
  13. public interface SysDeptMapper extends BaseMapperPlus<SysDept> {
  14. /**
  15. * 查询部门管理数据
  16. *
  17. * @param dept 部门信息
  18. * @return 部门信息集合
  19. */
  20. @DataPermission({
  21. @DataColumn(key = "deptName", value = "d.dept_id")
  22. })
  23. List<SysDept> selectDeptList(SysDept dept);
  24. /**
  25. * 根据角色ID查询部门树信息
  26. *
  27. * @param roleId 角色ID
  28. * @param deptCheckStrictly 部门树选择项是否关联显示
  29. * @return 选中部门列表
  30. */
  31. List<Long> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);
  32. /**
  33. * 修改子元素关系
  34. *
  35. * @param depts 子元素
  36. * @return 结果
  37. */
  38. int updateDeptChildren(@Param("depts") List<SysDept> depts);
  39. }