StandardPlatformLinkMapper.java 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. package com.goafanti.common.dao;
  2. import com.goafanti.common.model.StandardPlatformLink;
  3. import org.apache.ibatis.annotations.Param;
  4. import org.springframework.data.domain.Pageable;
  5. import java.util.List;
  6. /**
  7. * 标准平台连接(StandardPlatformLink)表数据库访问层
  8. *
  9. * @author makejava
  10. * @since 2024-07-02 09:43:35
  11. */
  12. public interface StandardPlatformLinkMapper {
  13. /**
  14. * 通过ID查询单条数据
  15. *
  16. * @param id 主键
  17. * @return 实例对象
  18. */
  19. StandardPlatformLink queryById(Integer id);
  20. /**
  21. * 查询指定行数据
  22. *
  23. * @param standardPlatformLink 查询条件
  24. * @param pageable 分页对象
  25. * @return 对象列表
  26. */
  27. List<StandardPlatformLink> queryAllByLimit(StandardPlatformLink standardPlatformLink, @Param("pageable") Pageable pageable);
  28. /**
  29. * 统计总行数
  30. *
  31. * @param standardPlatformLink 查询条件
  32. * @return 总行数
  33. */
  34. Integer queryAllByCount(StandardPlatformLink standardPlatformLink);
  35. /**
  36. * 新增数据
  37. *
  38. * @param standardPlatformLink 实例对象
  39. * @return 影响行数
  40. */
  41. int insert(StandardPlatformLink standardPlatformLink);
  42. /**
  43. * 批量新增数据(MyBatis原生foreach方法)
  44. *
  45. * @param entities List<StandardPlatformLink> 实例对象列表
  46. * @return 影响行数
  47. */
  48. int insertBatch(@Param("entities") List<StandardPlatformLink> entities);
  49. /**
  50. * 批量新增或按主键更新数据(MyBatis原生foreach方法)
  51. *
  52. * @param entities List<StandardPlatformLink> 实例对象列表
  53. * @return 影响行数
  54. * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
  55. */
  56. int insertOrUpdateBatch(@Param("entities") List<StandardPlatformLink> entities);
  57. /**
  58. * 修改数据
  59. *
  60. * @param standardPlatformLink 实例对象
  61. * @return 影响行数
  62. */
  63. int update(StandardPlatformLink standardPlatformLink);
  64. /**
  65. * 通过主键删除数据
  66. *
  67. * @param id 主键
  68. * @return 影响行数
  69. */
  70. int deleteById(Integer id);
  71. }