You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
2.0 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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