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