From f321bcbbad42fecb685981fd0d33d4d40b839454 Mon Sep 17 00:00:00 2001 From: zhoushen <2013650704@qq.com> Date: Mon, 16 Dec 2024 14:18:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E5=87=BD=E6=95=B0=E9=83=A8?= =?UTF-8?q?=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../macro/mall/mapper/PmsSkuStockMapper.java | 36 ++++++++++--------- .../mall/mapper/SmsCouponHistoryMapper.java | 36 ++++++++++--------- .../macro/mall/mapper/SmsCouponMapper.java | 36 ++++++++++--------- ...msCouponProductCategoryRelationMapper.java | 36 ++++++++++--------- .../SmsCouponProductRelationMapper.java | 36 ++++++++++--------- .../mapper/SmsFlashPromotionLogMapper.java | 36 ++++++++++--------- .../mall/mapper/SmsFlashPromotionMapper.java | 36 ++++++++++--------- ...msFlashPromotionProductRelationMapper.java | 36 ++++++++++--------- .../SmsFlashPromotionSessionMapper.java | 36 ++++++++++--------- 9 files changed, 171 insertions(+), 153 deletions(-) diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsSkuStockMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsSkuStockMapper.java index 668115d..1608253 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsSkuStockMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsSkuStockMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.PmsSkuStock; -import com.macro.mall.model.PmsSkuStockExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.PmsSkuStock; // 导入了PmsSkuStock实体类,用于数据库表的映射 +import com.macro.mall.model.PmsSkuStockExample; // 导入了PmsSkuStockExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface PmsSkuStockMapper { - long countByExample(PmsSkuStockExample example); +public interface PmsSkuStockMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(PmsSkuStockExample example); + long countByExample(PmsSkuStockExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(PmsSkuStockExample example); // 根据example条件删除记录 - int insert(PmsSkuStock record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(PmsSkuStock record); + int insert(PmsSkuStock record); // 插入一条PmsSkuStock记录 - List selectByExample(PmsSkuStockExample example); + int insertSelective(PmsSkuStock record); // 插入一条PmsSkuStock记录,只插入不为null的字段 - PmsSkuStock selectByPrimaryKey(Long id); + List selectByExample(PmsSkuStockExample example); // 根据example条件查询PmsSkuStock记录 - int updateByExampleSelective(@Param("record") PmsSkuStock record, @Param("example") PmsSkuStockExample example); + PmsSkuStock selectByPrimaryKey(Long id); // 根据主键id查询PmsSkuStock记录 - int updateByExample(@Param("record") PmsSkuStock record, @Param("example") PmsSkuStockExample example); + int updateByExampleSelective(@Param("record") PmsSkuStock record, @Param("example") PmsSkuStockExample example); // 根据example条件更新PmsSkuStock记录,只更新不为null的字段 - int updateByPrimaryKeySelective(PmsSkuStock record); + int updateByExample(@Param("record") PmsSkuStock record, @Param("example") PmsSkuStockExample example); // 根据example条件更新PmsSkuStock记录 - int updateByPrimaryKey(PmsSkuStock record); + int updateByPrimaryKeySelective(PmsSkuStock record); // 根据主键id更新PmsSkuStock记录,只更新不为null的字段 + + int updateByPrimaryKey(PmsSkuStock record); // 根据主键id更新PmsSkuStock记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponHistoryMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponHistoryMapper.java index 672604d..2ec6899 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponHistoryMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponHistoryMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.SmsCouponHistory; -import com.macro.mall.model.SmsCouponHistoryExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.SmsCouponHistory; // 导入了SmsCouponHistory实体类,用于数据库表的映射 +import com.macro.mall.model.SmsCouponHistoryExample; // 导入了SmsCouponHistoryExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface SmsCouponHistoryMapper { - long countByExample(SmsCouponHistoryExample example); +public interface SmsCouponHistoryMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(SmsCouponHistoryExample example); + long countByExample(SmsCouponHistoryExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(SmsCouponHistoryExample example); // 根据example条件删除记录 - int insert(SmsCouponHistory record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(SmsCouponHistory record); + int insert(SmsCouponHistory record); // 插入一条SmsCouponHistory记录 - List selectByExample(SmsCouponHistoryExample example); + int insertSelective(SmsCouponHistory record); // 插入一条SmsCouponHistory记录,只插入不为null的字段 - SmsCouponHistory selectByPrimaryKey(Long id); + List selectByExample(SmsCouponHistoryExample example); // 根据example条件查询SmsCouponHistory记录 - int updateByExampleSelective(@Param("record") SmsCouponHistory record, @Param("example") SmsCouponHistoryExample example); + SmsCouponHistory selectByPrimaryKey(Long id); // 根据主键id查询SmsCouponHistory记录 - int updateByExample(@Param("record") SmsCouponHistory record, @Param("example") SmsCouponHistoryExample example); + int updateByExampleSelective(@Param("record") SmsCouponHistory record, @Param("example") SmsCouponHistoryExample example); // 根据example条件更新SmsCouponHistory记录,只更新不为null的字段 - int updateByPrimaryKeySelective(SmsCouponHistory record); + int updateByExample(@Param("record") SmsCouponHistory record, @Param("example") SmsCouponHistoryExample example); // 根据example条件更新SmsCouponHistory记录 - int updateByPrimaryKey(SmsCouponHistory record); + int updateByPrimaryKeySelective(SmsCouponHistory record); // 根据主键id更新SmsCouponHistory记录,只更新不为null的字段 + + int updateByPrimaryKey(SmsCouponHistory record); // 根据主键id更新SmsCouponHistory记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponMapper.java index a6781a5..a8d2e5d 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.SmsCoupon; -import com.macro.mall.model.SmsCouponExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.SmsCoupon; // 导入了SmsCoupon实体类,用于数据库表的映射 +import com.macro.mall.model.SmsCouponExample; // 导入了SmsCouponExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface SmsCouponMapper { - long countByExample(SmsCouponExample example); +public interface SmsCouponMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(SmsCouponExample example); + long countByExample(SmsCouponExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(SmsCouponExample example); // 根据example条件删除记录 - int insert(SmsCoupon record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(SmsCoupon record); + int insert(SmsCoupon record); // 插入一条SmsCoupon记录 - List selectByExample(SmsCouponExample example); + int insertSelective(SmsCoupon record); // 插入一条SmsCoupon记录,只插入不为null的字段 - SmsCoupon selectByPrimaryKey(Long id); + List selectByExample(SmsCouponExample example); // 根据example条件查询SmsCoupon记录 - int updateByExampleSelective(@Param("record") SmsCoupon record, @Param("example") SmsCouponExample example); + SmsCoupon selectByPrimaryKey(Long id); // 根据主键id查询SmsCoupon记录 - int updateByExample(@Param("record") SmsCoupon record, @Param("example") SmsCouponExample example); + int updateByExampleSelective(@Param("record") SmsCoupon record, @Param("example") SmsCouponExample example); // 根据example条件更新SmsCoupon记录,只更新不为null的字段 - int updateByPrimaryKeySelective(SmsCoupon record); + int updateByExample(@Param("record") SmsCoupon record, @Param("example") SmsCouponExample example); // 根据example条件更新SmsCoupon记录 - int updateByPrimaryKey(SmsCoupon record); + int updateByPrimaryKeySelective(SmsCoupon record); // 根据主键id更新SmsCoupon记录,只更新不为null的字段 + + int updateByPrimaryKey(SmsCoupon record); // 根据主键id更新SmsCoupon记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponProductCategoryRelationMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponProductCategoryRelationMapper.java index 419c28e..df8b8ee 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponProductCategoryRelationMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponProductCategoryRelationMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.SmsCouponProductCategoryRelation; -import com.macro.mall.model.SmsCouponProductCategoryRelationExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.SmsCouponProductCategoryRelation; // 导入了SmsCouponProductCategoryRelation实体类,用于数据库表的映射 +import com.macro.mall.model.SmsCouponProductCategoryRelationExample; // 导入了SmsCouponProductCategoryRelationExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface SmsCouponProductCategoryRelationMapper { - long countByExample(SmsCouponProductCategoryRelationExample example); +public interface SmsCouponProductCategoryRelationMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(SmsCouponProductCategoryRelationExample example); + long countByExample(SmsCouponProductCategoryRelationExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(SmsCouponProductCategoryRelationExample example); // 根据example条件删除记录 - int insert(SmsCouponProductCategoryRelation record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(SmsCouponProductCategoryRelation record); + int insert(SmsCouponProductCategoryRelation record); // 插入一条SmsCouponProductCategoryRelation记录 - List selectByExample(SmsCouponProductCategoryRelationExample example); + int insertSelective(SmsCouponProductCategoryRelation record); // 插入一条SmsCouponProductCategoryRelation记录,只插入不为null的字段 - SmsCouponProductCategoryRelation selectByPrimaryKey(Long id); + List selectByExample(SmsCouponProductCategoryRelationExample example); // 根据example条件查询SmsCouponProductCategoryRelation记录 - int updateByExampleSelective(@Param("record") SmsCouponProductCategoryRelation record, @Param("example") SmsCouponProductCategoryRelationExample example); + SmsCouponProductCategoryRelation selectByPrimaryKey(Long id); // 根据主键id查询SmsCouponProductCategoryRelation记录 - int updateByExample(@Param("record") SmsCouponProductCategoryRelation record, @Param("example") SmsCouponProductCategoryRelationExample example); + int updateByExampleSelective(@Param("record") SmsCouponProductCategoryRelation record, @Param("example") SmsCouponProductCategoryRelationExample example); // 根据example条件更新SmsCouponProductCategoryRelation记录,只更新不为null的字段 - int updateByPrimaryKeySelective(SmsCouponProductCategoryRelation record); + int updateByExample(@Param("record") SmsCouponProductCategoryRelation record, @Param("example") SmsCouponProductCategoryRelationExample example); // 根据example条件更新SmsCouponProductCategoryRelation记录 - int updateByPrimaryKey(SmsCouponProductCategoryRelation record); + int updateByPrimaryKeySelective(SmsCouponProductCategoryRelation record); // 根据主键id更新SmsCouponProductCategoryRelation记录,只更新不为null的字段 + + int updateByPrimaryKey(SmsCouponProductCategoryRelation record); // 根据主键id更新SmsCouponProductCategoryRelation记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponProductRelationMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponProductRelationMapper.java index 0e77c32..c0c0cb7 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponProductRelationMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/SmsCouponProductRelationMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.SmsCouponProductRelation; -import com.macro.mall.model.SmsCouponProductRelationExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.SmsCouponProductRelation; // 导入了SmsCouponProductRelation实体类,用于数据库表的映射 +import com.macro.mall.model.SmsCouponProductRelationExample; // 导入了SmsCouponProductRelationExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface SmsCouponProductRelationMapper { - long countByExample(SmsCouponProductRelationExample example); +public interface SmsCouponProductRelationMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(SmsCouponProductRelationExample example); + long countByExample(SmsCouponProductRelationExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(SmsCouponProductRelationExample example); // 根据example条件删除记录 - int insert(SmsCouponProductRelation record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(SmsCouponProductRelation record); + int insert(SmsCouponProductRelation record); // 插入一条SmsCouponProductRelation记录 - List selectByExample(SmsCouponProductRelationExample example); + int insertSelective(SmsCouponProductRelation record); // 插入一条SmsCouponProductRelation记录,只插入不为null的字段 - SmsCouponProductRelation selectByPrimaryKey(Long id); + List selectByExample(SmsCouponProductRelationExample example); // 根据example条件查询SmsCouponProductRelation记录 - int updateByExampleSelective(@Param("record") SmsCouponProductRelation record, @Param("example") SmsCouponProductRelationExample example); + SmsCouponProductRelation selectByPrimaryKey(Long id); // 根据主键id查询SmsCouponProductRelation记录 - int updateByExample(@Param("record") SmsCouponProductRelation record, @Param("example") SmsCouponProductRelationExample example); + int updateByExampleSelective(@Param("record") SmsCouponProductRelation record, @Param("example") SmsCouponProductRelationExample example); // 根据example条件更新SmsCouponProductRelation记录,只更新不为null的字段 - int updateByPrimaryKeySelective(SmsCouponProductRelation record); + int updateByExample(@Param("record") SmsCouponProductRelation record, @Param("example") SmsCouponProductRelationExample example); // 根据example条件更新SmsCouponProductRelation记录 - int updateByPrimaryKey(SmsCouponProductRelation record); + int updateByPrimaryKeySelective(SmsCouponProductRelation record); // 根据主键id更新SmsCouponProductRelation记录,只更新不为null的字段 + + int updateByPrimaryKey(SmsCouponProductRelation record); // 根据主键id更新SmsCouponProductRelation记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionLogMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionLogMapper.java index da5b5f3..c5c21ef 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionLogMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionLogMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.SmsFlashPromotionLog; -import com.macro.mall.model.SmsFlashPromotionLogExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.SmsFlashPromotionLog; // 导入了SmsFlashPromotionLog实体类,用于数据库表的映射 +import com.macro.mall.model.SmsFlashPromotionLogExample; // 导入了SmsFlashPromotionLogExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface SmsFlashPromotionLogMapper { - long countByExample(SmsFlashPromotionLogExample example); +public interface SmsFlashPromotionLogMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(SmsFlashPromotionLogExample example); + long countByExample(SmsFlashPromotionLogExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Integer id); + int deleteByExample(SmsFlashPromotionLogExample example); // 根据example条件删除记录 - int insert(SmsFlashPromotionLog record); + int deleteByPrimaryKey(Integer id); // 根据主键id删除记录,这里使用的是Integer类型 - int insertSelective(SmsFlashPromotionLog record); + int insert(SmsFlashPromotionLog record); // 插入一条SmsFlashPromotionLog记录 - List selectByExample(SmsFlashPromotionLogExample example); + int insertSelective(SmsFlashPromotionLog record); // 插入一条SmsFlashPromotionLog记录,只插入不为null的字段 - SmsFlashPromotionLog selectByPrimaryKey(Integer id); + List selectByExample(SmsFlashPromotionLogExample example); // 根据example条件查询SmsFlashPromotionLog记录 - int updateByExampleSelective(@Param("record") SmsFlashPromotionLog record, @Param("example") SmsFlashPromotionLogExample example); + SmsFlashPromotionLog selectByPrimaryKey(Integer id); // 根据主键id查询SmsFlashPromotionLog记录,这里使用的是Integer类型 - int updateByExample(@Param("record") SmsFlashPromotionLog record, @Param("example") SmsFlashPromotionLogExample example); + int updateByExampleSelective(@Param("record") SmsFlashPromotionLog record, @Param("example") SmsFlashPromotionLogExample example); // 根据example条件更新SmsFlashPromotionLog记录,只更新不为null的字段 - int updateByPrimaryKeySelective(SmsFlashPromotionLog record); + int updateByExample(@Param("record") SmsFlashPromotionLog record, @Param("example") SmsFlashPromotionLogExample example); // 根据example条件更新SmsFlashPromotionLog记录 - int updateByPrimaryKey(SmsFlashPromotionLog record); + int updateByPrimaryKeySelective(SmsFlashPromotionLog record); // 根据主键id更新SmsFlashPromotionLog记录,只更新不为null的字段 + + int updateByPrimaryKey(SmsFlashPromotionLog record); // 根据主键id更新SmsFlashPromotionLog记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionMapper.java index 648b5dc..add2e12 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.SmsFlashPromotion; -import com.macro.mall.model.SmsFlashPromotionExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +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 { - long countByExample(SmsFlashPromotionExample example); +public interface SmsFlashPromotionMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(SmsFlashPromotionExample example); + long countByExample(SmsFlashPromotionExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(SmsFlashPromotionExample example); // 根据example条件删除记录 - int insert(SmsFlashPromotion record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(SmsFlashPromotion record); + int insert(SmsFlashPromotion record); // 插入一条SmsFlashPromotion记录 - List selectByExample(SmsFlashPromotionExample example); + int insertSelective(SmsFlashPromotion record); // 插入一条SmsFlashPromotion记录,只插入不为null的字段 - SmsFlashPromotion selectByPrimaryKey(Long id); + List selectByExample(SmsFlashPromotionExample example); // 根据example条件查询SmsFlashPromotion记录 - int updateByExampleSelective(@Param("record") SmsFlashPromotion record, @Param("example") SmsFlashPromotionExample example); + SmsFlashPromotion selectByPrimaryKey(Long id); // 根据主键id查询SmsFlashPromotion记录 - int updateByExample(@Param("record") SmsFlashPromotion record, @Param("example") SmsFlashPromotionExample example); + int updateByExampleSelective(@Param("record") SmsFlashPromotion record, @Param("example") SmsFlashPromotionExample example); // 根据example条件更新SmsFlashPromotion记录,只更新不为null的字段 - int updateByPrimaryKeySelective(SmsFlashPromotion record); + int updateByExample(@Param("record") SmsFlashPromotion record, @Param("example") SmsFlashPromotionExample example); // 根据example条件更新SmsFlashPromotion记录 - int updateByPrimaryKey(SmsFlashPromotion record); + int updateByPrimaryKeySelective(SmsFlashPromotion record); // 根据主键id更新SmsFlashPromotion记录,只更新不为null的字段 + + int updateByPrimaryKey(SmsFlashPromotion record); // 根据主键id更新SmsFlashPromotion记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionProductRelationMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionProductRelationMapper.java index e0dbbbb..bd7ced1 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionProductRelationMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionProductRelationMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.SmsFlashPromotionProductRelation; -import com.macro.mall.model.SmsFlashPromotionProductRelationExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.SmsFlashPromotionProductRelation; // 导入了SmsFlashPromotionProductRelation实体类,用于数据库表的映射 +import com.macro.mall.model.SmsFlashPromotionProductRelationExample; // 导入了SmsFlashPromotionProductRelationExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface SmsFlashPromotionProductRelationMapper { - long countByExample(SmsFlashPromotionProductRelationExample example); +public interface SmsFlashPromotionProductRelationMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(SmsFlashPromotionProductRelationExample example); + long countByExample(SmsFlashPromotionProductRelationExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(SmsFlashPromotionProductRelationExample example); // 根据example条件删除记录 - int insert(SmsFlashPromotionProductRelation record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(SmsFlashPromotionProductRelation record); + int insert(SmsFlashPromotionProductRelation record); // 插入一条SmsFlashPromotionProductRelation记录 - List selectByExample(SmsFlashPromotionProductRelationExample example); + int insertSelective(SmsFlashPromotionProductRelation record); // 插入一条SmsFlashPromotionProductRelation记录,只插入不为null的字段 - SmsFlashPromotionProductRelation selectByPrimaryKey(Long id); + List selectByExample(SmsFlashPromotionProductRelationExample example); // 根据example条件查询SmsFlashPromotionProductRelation记录 - int updateByExampleSelective(@Param("record") SmsFlashPromotionProductRelation record, @Param("example") SmsFlashPromotionProductRelationExample example); + SmsFlashPromotionProductRelation selectByPrimaryKey(Long id); // 根据主键id查询SmsFlashPromotionProductRelation记录 - int updateByExample(@Param("record") SmsFlashPromotionProductRelation record, @Param("example") SmsFlashPromotionProductRelationExample example); + int updateByExampleSelective(@Param("record") SmsFlashPromotionProductRelation record, @Param("example") SmsFlashPromotionProductRelationExample example); // 根据example条件更新SmsFlashPromotionProductRelation记录,只更新不为null的字段 - int updateByPrimaryKeySelective(SmsFlashPromotionProductRelation record); + int updateByExample(@Param("record") SmsFlashPromotionProductRelation record, @Param("example") SmsFlashPromotionProductRelationExample example); // 根据example条件更新SmsFlashPromotionProductRelation记录 - int updateByPrimaryKey(SmsFlashPromotionProductRelation record); + int updateByPrimaryKeySelective(SmsFlashPromotionProductRelation record); // 根据主键id更新SmsFlashPromotionProductRelation记录,只更新不为null的字段 + + int updateByPrimaryKey(SmsFlashPromotionProductRelation record); // 根据主键id更新SmsFlashPromotionProductRelation记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionSessionMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionSessionMapper.java index e85bca5..9d91eb3 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionSessionMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/SmsFlashPromotionSessionMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.SmsFlashPromotionSession; -import com.macro.mall.model.SmsFlashPromotionSessionExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.SmsFlashPromotionSession; // 导入了SmsFlashPromotionSession实体类,用于数据库表的映射 +import com.macro.mall.model.SmsFlashPromotionSessionExample; // 导入了SmsFlashPromotionSessionExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface SmsFlashPromotionSessionMapper { - long countByExample(SmsFlashPromotionSessionExample example); +public interface SmsFlashPromotionSessionMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(SmsFlashPromotionSessionExample example); + long countByExample(SmsFlashPromotionSessionExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(SmsFlashPromotionSessionExample example); // 根据example条件删除记录 - int insert(SmsFlashPromotionSession record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(SmsFlashPromotionSession record); + int insert(SmsFlashPromotionSession record); // 插入一条SmsFlashPromotionSession记录 - List selectByExample(SmsFlashPromotionSessionExample example); + int insertSelective(SmsFlashPromotionSession record); // 插入一条SmsFlashPromotionSession记录,只插入不为null的字段 - SmsFlashPromotionSession selectByPrimaryKey(Long id); + List selectByExample(SmsFlashPromotionSessionExample example); // 根据example条件查询SmsFlashPromotionSession记录 - int updateByExampleSelective(@Param("record") SmsFlashPromotionSession record, @Param("example") SmsFlashPromotionSessionExample example); + SmsFlashPromotionSession selectByPrimaryKey(Long id); // 根据主键id查询SmsFlashPromotionSession记录 - int updateByExample(@Param("record") SmsFlashPromotionSession record, @Param("example") SmsFlashPromotionSessionExample example); + int updateByExampleSelective(@Param("record") SmsFlashPromotionSession record, @Param("example") SmsFlashPromotionSessionExample example); // 根据example条件更新SmsFlashPromotionSession记录,只更新不为null的字段 - int updateByPrimaryKeySelective(SmsFlashPromotionSession record); + int updateByExample(@Param("record") SmsFlashPromotionSession record, @Param("example") SmsFlashPromotionSessionExample example); // 根据example条件更新SmsFlashPromotionSession记录 - int updateByPrimaryKey(SmsFlashPromotionSession record); + int updateByPrimaryKeySelective(SmsFlashPromotionSession record); // 根据主键id更新SmsFlashPromotionSession记录,只更新不为null的字段 + + int updateByPrimaryKey(SmsFlashPromotionSession record); // 根据主键id更新SmsFlashPromotionSession记录 } \ No newline at end of file