UserArchivesInterviewMapper.java 2.3 KB

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