替换函数部分

dev
zhoushen 9 months ago
parent c70969cd04
commit aa0b97e669

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