TaskFeatureLogMapper.java 2.2 KB

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