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