替换函数部分

dev
zhoushen 9 months ago
parent aa0b97e669
commit 891d89a454

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