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