|
|
|
@ -1,36 +1,38 @@
|
|
|
|
|
package com.macro.mall.mapper;
|
|
|
|
|
package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理
|
|
|
|
|
|
|
|
|
|
import com.macro.mall.model.PmsComment;
|
|
|
|
|
import com.macro.mall.model.PmsCommentExample;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
import com.macro.mall.model.PmsComment; // 导入了PmsComment实体类,用于数据库表的映射
|
|
|
|
|
import com.macro.mall.model.PmsCommentExample; // 导入了PmsCommentExample类,用于构建查询条件
|
|
|
|
|
import java.util.List; // 导入了List接口,用于存储查询结果集
|
|
|
|
|
import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称
|
|
|
|
|
|
|
|
|
|
public interface PmsCommentMapper {
|
|
|
|
|
long countByExample(PmsCommentExample example);
|
|
|
|
|
public interface PmsCommentMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作
|
|
|
|
|
// 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作
|
|
|
|
|
|
|
|
|
|
int deleteByExample(PmsCommentExample example);
|
|
|
|
|
long countByExample(PmsCommentExample example); // 根据example条件统计记录数
|
|
|
|
|
|
|
|
|
|
int deleteByPrimaryKey(Long id);
|
|
|
|
|
int deleteByExample(PmsCommentExample example); // 根据example条件删除记录
|
|
|
|
|
|
|
|
|
|
int insert(PmsComment record);
|
|
|
|
|
int deleteByPrimaryKey(Long id); // 根据主键id删除记录
|
|
|
|
|
|
|
|
|
|
int insertSelective(PmsComment record);
|
|
|
|
|
int insert(PmsComment record); // 插入一条PmsComment记录
|
|
|
|
|
|
|
|
|
|
List<PmsComment> selectByExampleWithBLOBs(PmsCommentExample example);
|
|
|
|
|
int insertSelective(PmsComment record); // 插入一条PmsComment记录,只插入不为null的字段
|
|
|
|
|
|
|
|
|
|
List<PmsComment> selectByExample(PmsCommentExample example);
|
|
|
|
|
List<PmsComment> selectByExampleWithBLOBs(PmsCommentExample example); // 根据example条件查询PmsComment记录,包括BLOB字段
|
|
|
|
|
|
|
|
|
|
PmsComment selectByPrimaryKey(Long id);
|
|
|
|
|
List<PmsComment> selectByExample(PmsCommentExample example); // 根据example条件查询PmsComment记录,不包括BLOB字段
|
|
|
|
|
|
|
|
|
|
int updateByExampleSelective(@Param("record") PmsComment record, @Param("example") PmsCommentExample example);
|
|
|
|
|
PmsComment selectByPrimaryKey(Long id); // 根据主键id查询PmsComment记录
|
|
|
|
|
|
|
|
|
|
int updateByExampleWithBLOBs(@Param("record") PmsComment record, @Param("example") PmsCommentExample example);
|
|
|
|
|
int updateByExampleSelective(@Param("record") PmsComment record, @Param("example") PmsCommentExample example); // 根据example条件更新PmsComment记录,只更新不为null的字段
|
|
|
|
|
|
|
|
|
|
int updateByExample(@Param("record") PmsComment record, @Param("example") PmsCommentExample example);
|
|
|
|
|
int updateByExampleWithBLOBs(@Param("record") PmsComment record, @Param("example") PmsCommentExample example); // 根据example条件更新PmsComment记录,包括BLOB字段
|
|
|
|
|
|
|
|
|
|
int updateByPrimaryKeySelective(PmsComment record);
|
|
|
|
|
int updateByExample(@Param("record") PmsComment record, @Param("example") PmsCommentExample example); // 根据example条件更新PmsComment记录
|
|
|
|
|
|
|
|
|
|
int updateByPrimaryKeyWithBLOBs(PmsComment record);
|
|
|
|
|
int updateByPrimaryKeySelective(PmsComment record); // 根据主键id更新PmsComment记录,只更新不为null的字段
|
|
|
|
|
|
|
|
|
|
int updateByPrimaryKey(PmsComment record);
|
|
|
|
|
int updateByPrimaryKeyWithBLOBs(PmsComment record); // 根据主键id更新PmsComment记录,包括BLOB字段
|
|
|
|
|
|
|
|
|
|
int updateByPrimaryKey(PmsComment record); // 根据主键id更新PmsComment记录
|
|
|
|
|
}
|