TCommentUserMapper.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.ylx.massage.mapper;
  2. import java.util.List;
  3. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  4. import org.apache.ibatis.annotations.Param;
  5. import com.ylx.order.domain.TCommentUser;
  6. /**
  7. * 用户评论表(TCommentUser)表数据库访问层
  8. *
  9. * @author makejava
  10. * @since 2024-08-08 10:32:07
  11. */
  12. public interface TCommentUserMapper extends BaseMapper<TCommentUser> {
  13. /**
  14. * 批量新增数据(MyBatis原生foreach方法)
  15. *
  16. * @param entities List<TCommentUser> 实例对象列表
  17. * @return 影响行数
  18. */
  19. int insertBatch(@Param("entities") List<TCommentUser> entities);
  20. /**
  21. * 批量新增或按主键更新数据(MyBatis原生foreach方法)
  22. *
  23. * @param entities List<TCommentUser> 实例对象列表
  24. * @return 影响行数
  25. * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
  26. */
  27. int insertOrUpdateBatch(@Param("entities") List<TCommentUser> entities);
  28. /**
  29. * 分页查询用户评论
  30. *
  31. * @param tCommentUser
  32. * @return Page<TCommentUser>
  33. */
  34. List<TCommentUser> selectAll(@Param("tCommentUser") TCommentUser tCommentUser);
  35. }