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