PublicConfigMapper.java 2.1 KB

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