RoleOrgMapper.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. package com.huaxu.dao;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import com.huaxu.entity.RoleOrg;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import org.apache.ibatis.annotations.Param;
  6. import java.util.List;
  7. /**
  8. * 角色组织(RoleOrg)表数据库访问层
  9. *
  10. * @author makejava
  11. * @since 2020-10-27 10:35:23
  12. */
  13. @Mapper
  14. public interface RoleOrgMapper {
  15. /**
  16. * 通过ID查询单条数据
  17. *
  18. * @param id 主键
  19. * @return 实例对象
  20. */
  21. RoleOrg selectById(Integer id);
  22. /**
  23. * 查询全部
  24. *
  25. * @return 对象列表
  26. */
  27. List<RoleOrg> selectAll();
  28. /**
  29. * 通过实体作为筛选条件查询
  30. *
  31. * @param roleOrg 实例对象
  32. * @return 对象列表
  33. */
  34. List<RoleOrg> selectList(RoleOrg roleOrg);
  35. /**
  36. * 新增数据
  37. *
  38. * @param roleOrg 实例对象
  39. * @return 影响行数
  40. */
  41. int insert(RoleOrg roleOrg);
  42. /**
  43. * 批量新增
  44. *
  45. * @param roleOrgs 实例对象的集合
  46. * @return 影响行数
  47. */
  48. int batchInsert(@Param("roleOrgs") List<RoleOrg> roleOrgs);
  49. /**
  50. * 修改数据
  51. *
  52. * @param roleOrg 实例对象
  53. * @return 影响行数
  54. */
  55. int update(RoleOrg roleOrg);
  56. /**
  57. * 通过主键删除数据
  58. *
  59. * @param id 主键
  60. * @return 影响行数
  61. */
  62. int deleteById(Integer id);
  63. /**
  64. * 查询总数据数
  65. *
  66. * @return 数据总数
  67. */
  68. int count();
  69. IPage<RoleOrg> selectPage(IPage<RoleOrg> page, RoleOrg roleOrg);
  70. int deleteOrgRole(Integer id);
  71. }