| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- package com.ylx.massage.mapper;
- import java.util.List;
- import com.baomidou.mybatisplus.core.mapper.BaseMapper;
- import org.apache.ibatis.annotations.Param;
- import com.ylx.order.domain.TCommentUser;
- /**
- * 用户评论表(TCommentUser)表数据库访问层
- *
- * @author makejava
- * @since 2024-08-08 10:32:07
- */
- public interface TCommentUserMapper extends BaseMapper<TCommentUser> {
- /**
- * 批量新增数据(MyBatis原生foreach方法)
- *
- * @param entities List<TCommentUser> 实例对象列表
- * @return 影响行数
- */
- int insertBatch(@Param("entities") List<TCommentUser> entities);
- /**
- * 批量新增或按主键更新数据(MyBatis原生foreach方法)
- *
- * @param entities List<TCommentUser> 实例对象列表
- * @return 影响行数
- * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
- */
- int insertOrUpdateBatch(@Param("entities") List<TCommentUser> entities);
- /**
- * 分页查询用户评论
- *
- * @param tCommentUser
- * @return Page<TCommentUser>
- */
- List<TCommentUser> selectAll(@Param("tCommentUser") TCommentUser tCommentUser);
- }
|