diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicMapper.java index 7411b0c..d7bf96d 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/CmsTopicMapper.java @@ -1,36 +1,38 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.CmsTopic; -import com.macro.mall.model.CmsTopicExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.CmsTopic; // 导入了CmsTopic实体类,用于数据库表的映射 +import com.macro.mall.model.CmsTopicExample; // 导入了CmsTopicExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface CmsTopicMapper { - long countByExample(CmsTopicExample example); +public interface CmsTopicMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(CmsTopicExample example); + long countByExample(CmsTopicExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(CmsTopicExample example); // 根据example条件删除记录 - int insert(CmsTopic record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(CmsTopic record); + int insert(CmsTopic record); // 插入一条CmsTopic记录 - List selectByExampleWithBLOBs(CmsTopicExample example); + int insertSelective(CmsTopic record); // 插入一条CmsTopic记录,只插入不为null的字段 - List selectByExample(CmsTopicExample example); + List selectByExampleWithBLOBs(CmsTopicExample example); // 根据example条件查询CmsTopic记录,包括BLOB字段 - CmsTopic selectByPrimaryKey(Long id); + List selectByExample(CmsTopicExample example); // 根据example条件查询CmsTopic记录,不包括BLOB字段 - int updateByExampleSelective(@Param("record") CmsTopic record, @Param("example") CmsTopicExample example); + CmsTopic selectByPrimaryKey(Long id); // 根据主键id查询CmsTopic记录 - int updateByExampleWithBLOBs(@Param("record") CmsTopic record, @Param("example") CmsTopicExample example); + int updateByExampleSelective(@Param("record") CmsTopic record, @Param("example") CmsTopicExample example); // 根据example条件更新CmsTopic记录,只更新不为null的字段 - int updateByExample(@Param("record") CmsTopic record, @Param("example") CmsTopicExample example); + int updateByExampleWithBLOBs(@Param("record") CmsTopic record, @Param("example") CmsTopicExample example); // 根据example条件更新CmsTopic记录,包括BLOB字段 - int updateByPrimaryKeySelective(CmsTopic record); + int updateByExample(@Param("record") CmsTopic record, @Param("example") CmsTopicExample example); // 根据example条件更新CmsTopic记录 - int updateByPrimaryKeyWithBLOBs(CmsTopic record); + int updateByPrimaryKeySelective(CmsTopic record); // 根据主键id更新CmsTopic记录,只更新不为null的字段 - int updateByPrimaryKey(CmsTopic record); + int updateByPrimaryKeyWithBLOBs(CmsTopic record); // 根据主键id更新CmsTopic记录,包括BLOB字段 + + int updateByPrimaryKey(CmsTopic record); // 根据主键id更新CmsTopic记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/OmsCartItemMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/OmsCartItemMapper.java index 7d6d6f1..08e8e08 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/OmsCartItemMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/OmsCartItemMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.OmsCartItem; -import com.macro.mall.model.OmsCartItemExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.OmsCartItem; // 导入了OmsCartItem实体类,用于数据库表的映射 +import com.macro.mall.model.OmsCartItemExample; // 导入了OmsCartItemExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface OmsCartItemMapper { - long countByExample(OmsCartItemExample example); +public interface OmsCartItemMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(OmsCartItemExample example); + long countByExample(OmsCartItemExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(OmsCartItemExample example); // 根据example条件删除记录 - int insert(OmsCartItem record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(OmsCartItem record); + int insert(OmsCartItem record); // 插入一条OmsCartItem记录 - List selectByExample(OmsCartItemExample example); + int insertSelective(OmsCartItem record); // 插入一条OmsCartItem记录,只插入不为null的字段 - OmsCartItem selectByPrimaryKey(Long id); + List selectByExample(OmsCartItemExample example); // 根据example条件查询OmsCartItem记录 - int updateByExampleSelective(@Param("record") OmsCartItem record, @Param("example") OmsCartItemExample example); + OmsCartItem selectByPrimaryKey(Long id); // 根据主键id查询OmsCartItem记录 - int updateByExample(@Param("record") OmsCartItem record, @Param("example") OmsCartItemExample example); + int updateByExampleSelective(@Param("record") OmsCartItem record, @Param("example") OmsCartItemExample example); // 根据example条件更新OmsCartItem记录,只更新不为null的字段 - int updateByPrimaryKeySelective(OmsCartItem record); + int updateByExample(@Param("record") OmsCartItem record, @Param("example") OmsCartItemExample example); // 根据example条件更新OmsCartItem记录 - int updateByPrimaryKey(OmsCartItem record); + int updateByPrimaryKeySelective(OmsCartItem record); // 根据主键id更新OmsCartItem记录,只更新不为null的字段 + + int updateByPrimaryKey(OmsCartItem record); // 根据主键id更新OmsCartItem记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/OmsCompanyAddressMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/OmsCompanyAddressMapper.java index b2345b8..ec07f76 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/OmsCompanyAddressMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/OmsCompanyAddressMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.OmsCompanyAddress; -import com.macro.mall.model.OmsCompanyAddressExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.OmsCompanyAddress; // 导入了OmsCompanyAddress实体类,用于数据库表的映射 +import com.macro.mall.model.OmsCompanyAddressExample; // 导入了OmsCompanyAddressExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface OmsCompanyAddressMapper { - long countByExample(OmsCompanyAddressExample example); +public interface OmsCompanyAddressMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(OmsCompanyAddressExample example); + long countByExample(OmsCompanyAddressExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(OmsCompanyAddressExample example); // 根据example条件删除记录 - int insert(OmsCompanyAddress record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(OmsCompanyAddress record); + int insert(OmsCompanyAddress record); // 插入一条OmsCompanyAddress记录 - List selectByExample(OmsCompanyAddressExample example); + int insertSelective(OmsCompanyAddress record); // 插入一条OmsCompanyAddress记录,只插入不为null的字段 - OmsCompanyAddress selectByPrimaryKey(Long id); + List selectByExample(OmsCompanyAddressExample example); // 根据example条件查询OmsCompanyAddress记录 - int updateByExampleSelective(@Param("record") OmsCompanyAddress record, @Param("example") OmsCompanyAddressExample example); + OmsCompanyAddress selectByPrimaryKey(Long id); // 根据主键id查询OmsCompanyAddress记录 - int updateByExample(@Param("record") OmsCompanyAddress record, @Param("example") OmsCompanyAddressExample example); + int updateByExampleSelective(@Param("record") OmsCompanyAddress record, @Param("example") OmsCompanyAddressExample example); // 根据example条件更新OmsCompanyAddress记录,只更新不为null的字段 - int updateByPrimaryKeySelective(OmsCompanyAddress record); + int updateByExample(@Param("record") OmsCompanyAddress record, @Param("example") OmsCompanyAddressExample example); // 根据example条件更新OmsCompanyAddress记录 - int updateByPrimaryKey(OmsCompanyAddress record); + int updateByPrimaryKeySelective(OmsCompanyAddress record); // 根据主键id更新OmsCompanyAddress记录,只更新不为null的字段 + + int updateByPrimaryKey(OmsCompanyAddress record); // 根据主键id更新OmsCompanyAddress记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderItemMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderItemMapper.java index 026e13e..e8258ab 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderItemMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderItemMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.OmsOrderItem; -import com.macro.mall.model.OmsOrderItemExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.OmsOrderItem; // 导入了OmsOrderItem实体类,用于数据库表的映射 +import com.macro.mall.model.OmsOrderItemExample; // 导入了OmsOrderItemExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface OmsOrderItemMapper { - long countByExample(OmsOrderItemExample example); +public interface OmsOrderItemMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(OmsOrderItemExample example); + long countByExample(OmsOrderItemExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(OmsOrderItemExample example); // 根据example条件删除记录 - int insert(OmsOrderItem record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(OmsOrderItem record); + int insert(OmsOrderItem record); // 插入一条OmsOrderItem记录 - List selectByExample(OmsOrderItemExample example); + int insertSelective(OmsOrderItem record); // 插入一条OmsOrderItem记录,只插入不为null的字段 - OmsOrderItem selectByPrimaryKey(Long id); + List selectByExample(OmsOrderItemExample example); // 根据example条件查询OmsOrderItem记录 - int updateByExampleSelective(@Param("record") OmsOrderItem record, @Param("example") OmsOrderItemExample example); + OmsOrderItem selectByPrimaryKey(Long id); // 根据主键id查询OmsOrderItem记录 - int updateByExample(@Param("record") OmsOrderItem record, @Param("example") OmsOrderItemExample example); + int updateByExampleSelective(@Param("record") OmsOrderItem record, @Param("example") OmsOrderItemExample example); // 根据example条件更新OmsOrderItem记录,只更新不为null的字段 - int updateByPrimaryKeySelective(OmsOrderItem record); + int updateByExample(@Param("record") OmsOrderItem record, @Param("example") OmsOrderItemExample example); // 根据example条件更新OmsOrderItem记录 - int updateByPrimaryKey(OmsOrderItem record); + int updateByPrimaryKeySelective(OmsOrderItem record); // 根据主键id更新OmsOrderItem记录,只更新不为null的字段 + + int updateByPrimaryKey(OmsOrderItem record); // 根据主键id更新OmsOrderItem记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderMapper.java index 9379cf3..be1d5b6 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.OmsOrder; -import com.macro.mall.model.OmsOrderExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.OmsOrder; // 导入了OmsOrder实体类,用于数据库表的映射 +import com.macro.mall.model.OmsOrderExample; // 导入了OmsOrderExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface OmsOrderMapper { - long countByExample(OmsOrderExample example); +public interface OmsOrderMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(OmsOrderExample example); + long countByExample(OmsOrderExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(OmsOrderExample example); // 根据example条件删除记录 - int insert(OmsOrder record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(OmsOrder record); + int insert(OmsOrder record); // 插入一条OmsOrder记录 - List selectByExample(OmsOrderExample example); + int insertSelective(OmsOrder record); // 插入一条OmsOrder记录,只插入不为null的字段 - OmsOrder selectByPrimaryKey(Long id); + List selectByExample(OmsOrderExample example); // 根据example条件查询OmsOrder记录 - int updateByExampleSelective(@Param("record") OmsOrder record, @Param("example") OmsOrderExample example); + OmsOrder selectByPrimaryKey(Long id); // 根据主键id查询OmsOrder记录 - int updateByExample(@Param("record") OmsOrder record, @Param("example") OmsOrderExample example); + int updateByExampleSelective(@Param("record") OmsOrder record, @Param("example") OmsOrderExample example); // 根据example条件更新OmsOrder记录,只更新不为null的字段 - int updateByPrimaryKeySelective(OmsOrder record); + int updateByExample(@Param("record") OmsOrder record, @Param("example") OmsOrderExample example); // 根据example条件更新OmsOrder记录 - int updateByPrimaryKey(OmsOrder record); + int updateByPrimaryKeySelective(OmsOrder record); // 根据主键id更新OmsOrder记录,只更新不为null的字段 + + int updateByPrimaryKey(OmsOrder record); // 根据主键id更新OmsOrder记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderOperateHistoryMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderOperateHistoryMapper.java index 20e445a..62d8cdd 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderOperateHistoryMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderOperateHistoryMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.OmsOrderOperateHistory; -import com.macro.mall.model.OmsOrderOperateHistoryExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.OmsOrderOperateHistory; // 导入了OmsOrderOperateHistory实体类,用于数据库表的映射 +import com.macro.mall.model.OmsOrderOperateHistoryExample; // 导入了OmsOrderOperateHistoryExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface OmsOrderOperateHistoryMapper { - long countByExample(OmsOrderOperateHistoryExample example); +public interface OmsOrderOperateHistoryMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(OmsOrderOperateHistoryExample example); + long countByExample(OmsOrderOperateHistoryExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(OmsOrderOperateHistoryExample example); // 根据example条件删除记录 - int insert(OmsOrderOperateHistory record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(OmsOrderOperateHistory record); + int insert(OmsOrderOperateHistory record); // 插入一条OmsOrderOperateHistory记录 - List selectByExample(OmsOrderOperateHistoryExample example); + int insertSelective(OmsOrderOperateHistory record); // 插入一条OmsOrderOperateHistory记录,只插入不为null的字段 - OmsOrderOperateHistory selectByPrimaryKey(Long id); + List selectByExample(OmsOrderOperateHistoryExample example); // 根据example条件查询OmsOrderOperateHistory记录 - int updateByExampleSelective(@Param("record") OmsOrderOperateHistory record, @Param("example") OmsOrderOperateHistoryExample example); + OmsOrderOperateHistory selectByPrimaryKey(Long id); // 根据主键id查询OmsOrderOperateHistory记录 - int updateByExample(@Param("record") OmsOrderOperateHistory record, @Param("example") OmsOrderOperateHistoryExample example); + int updateByExampleSelective(@Param("record") OmsOrderOperateHistory record, @Param("example") OmsOrderOperateHistoryExample example); // 根据example条件更新OmsOrderOperateHistory记录,只更新不为null的字段 - int updateByPrimaryKeySelective(OmsOrderOperateHistory record); + int updateByExample(@Param("record") OmsOrderOperateHistory record, @Param("example") OmsOrderOperateHistoryExample example); // 根据example条件更新OmsOrderOperateHistory记录 - int updateByPrimaryKey(OmsOrderOperateHistory record); + int updateByPrimaryKeySelective(OmsOrderOperateHistory record); // 根据主键id更新OmsOrderOperateHistory记录,只更新不为null的字段 + + int updateByPrimaryKey(OmsOrderOperateHistory record); // 根据主键id更新OmsOrderOperateHistory记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderReturnApplyMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderReturnApplyMapper.java index 660c747..abf143b 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderReturnApplyMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderReturnApplyMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.OmsOrderReturnApply; -import com.macro.mall.model.OmsOrderReturnApplyExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.OmsOrderReturnApply; // 导入了OmsOrderReturnApply实体类,用于数据库表的映射 +import com.macro.mall.model.OmsOrderReturnApplyExample; // 导入了OmsOrderReturnApplyExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface OmsOrderReturnApplyMapper { - long countByExample(OmsOrderReturnApplyExample example); +public interface OmsOrderReturnApplyMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(OmsOrderReturnApplyExample example); + long countByExample(OmsOrderReturnApplyExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(OmsOrderReturnApplyExample example); // 根据example条件删除记录 - int insert(OmsOrderReturnApply record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(OmsOrderReturnApply record); + int insert(OmsOrderReturnApply record); // 插入一条OmsOrderReturnApply记录 - List selectByExample(OmsOrderReturnApplyExample example); + int insertSelective(OmsOrderReturnApply record); // 插入一条OmsOrderReturnApply记录,只插入不为null的字段 - OmsOrderReturnApply selectByPrimaryKey(Long id); + List selectByExample(OmsOrderReturnApplyExample example); // 根据example条件查询OmsOrderReturnApply记录 - int updateByExampleSelective(@Param("record") OmsOrderReturnApply record, @Param("example") OmsOrderReturnApplyExample example); + OmsOrderReturnApply selectByPrimaryKey(Long id); // 根据主键id查询OmsOrderReturnApply记录 - int updateByExample(@Param("record") OmsOrderReturnApply record, @Param("example") OmsOrderReturnApplyExample example); + int updateByExampleSelective(@Param("record") OmsOrderReturnApply record, @Param("example") OmsOrderReturnApplyExample example); // 根据example条件更新OmsOrderReturnApply记录,只更新不为null的字段 - int updateByPrimaryKeySelective(OmsOrderReturnApply record); + int updateByExample(@Param("record") OmsOrderReturnApply record, @Param("example") OmsOrderReturnApplyExample example); // 根据example条件更新OmsOrderReturnApply记录 - int updateByPrimaryKey(OmsOrderReturnApply record); + int updateByPrimaryKeySelective(OmsOrderReturnApply record); // 根据主键id更新OmsOrderReturnApply记录,只更新不为null的字段 + + int updateByPrimaryKey(OmsOrderReturnApply record); // 根据主键id更新OmsOrderReturnApply记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderReturnReasonMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderReturnReasonMapper.java index d980d42..0fe4eac 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderReturnReasonMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderReturnReasonMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.OmsOrderReturnReason; -import com.macro.mall.model.OmsOrderReturnReasonExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.OmsOrderReturnReason; // 导入了OmsOrderReturnReason实体类,用于数据库表的映射 +import com.macro.mall.model.OmsOrderReturnReasonExample; // 导入了OmsOrderReturnReasonExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface OmsOrderReturnReasonMapper { - long countByExample(OmsOrderReturnReasonExample example); +public interface OmsOrderReturnReasonMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(OmsOrderReturnReasonExample example); + long countByExample(OmsOrderReturnReasonExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(OmsOrderReturnReasonExample example); // 根据example条件删除记录 - int insert(OmsOrderReturnReason record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(OmsOrderReturnReason record); + int insert(OmsOrderReturnReason record); // 插入一条OmsOrderReturnReason记录 - List selectByExample(OmsOrderReturnReasonExample example); + int insertSelective(OmsOrderReturnReason record); // 插入一条OmsOrderReturnReason记录,只插入不为null的字段 - OmsOrderReturnReason selectByPrimaryKey(Long id); + List selectByExample(OmsOrderReturnReasonExample example); // 根据example条件查询OmsOrderReturnReason记录 - int updateByExampleSelective(@Param("record") OmsOrderReturnReason record, @Param("example") OmsOrderReturnReasonExample example); + OmsOrderReturnReason selectByPrimaryKey(Long id); // 根据主键id查询OmsOrderReturnReason记录 - int updateByExample(@Param("record") OmsOrderReturnReason record, @Param("example") OmsOrderReturnReasonExample example); + int updateByExampleSelective(@Param("record") OmsOrderReturnReason record, @Param("example") OmsOrderReturnReasonExample example); // 根据example条件更新OmsOrderReturnReason记录,只更新不为null的字段 - int updateByPrimaryKeySelective(OmsOrderReturnReason record); + int updateByExample(@Param("record") OmsOrderReturnReason record, @Param("example") OmsOrderReturnReasonExample example); // 根据example条件更新OmsOrderReturnReason记录 - int updateByPrimaryKey(OmsOrderReturnReason record); + int updateByPrimaryKeySelective(OmsOrderReturnReason record); // 根据主键id更新OmsOrderReturnReason记录,只更新不为null的字段 + + int updateByPrimaryKey(OmsOrderReturnReason record); // 根据主键id更新OmsOrderReturnReason记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderSettingMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderSettingMapper.java index e555cb8..2199bae 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderSettingMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/OmsOrderSettingMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.OmsOrderSetting; -import com.macro.mall.model.OmsOrderSettingExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.OmsOrderSetting; // 导入了OmsOrderSetting实体类,用于数据库表的映射 +import com.macro.mall.model.OmsOrderSettingExample; // 导入了OmsOrderSettingExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface OmsOrderSettingMapper { - long countByExample(OmsOrderSettingExample example); +public interface OmsOrderSettingMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(OmsOrderSettingExample example); + long countByExample(OmsOrderSettingExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(OmsOrderSettingExample example); // 根据example条件删除记录 - int insert(OmsOrderSetting record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(OmsOrderSetting record); + int insert(OmsOrderSetting record); // 插入一条OmsOrderSetting记录 - List selectByExample(OmsOrderSettingExample example); + int insertSelective(OmsOrderSetting record); // 插入一条OmsOrderSetting记录,只插入不为null的字段 - OmsOrderSetting selectByPrimaryKey(Long id); + List selectByExample(OmsOrderSettingExample example); // 根据example条件查询OmsOrderSetting记录 - int updateByExampleSelective(@Param("record") OmsOrderSetting record, @Param("example") OmsOrderSettingExample example); + OmsOrderSetting selectByPrimaryKey(Long id); // 根据主键id查询OmsOrderSetting记录 - int updateByExample(@Param("record") OmsOrderSetting record, @Param("example") OmsOrderSettingExample example); + int updateByExampleSelective(@Param("record") OmsOrderSetting record, @Param("example") OmsOrderSettingExample example); // 根据example条件更新OmsOrderSetting记录,只更新不为null的字段 - int updateByPrimaryKeySelective(OmsOrderSetting record); + int updateByExample(@Param("record") OmsOrderSetting record, @Param("example") OmsOrderSettingExample example); // 根据example条件更新OmsOrderSetting记录 - int updateByPrimaryKey(OmsOrderSetting record); + int updateByPrimaryKeySelective(OmsOrderSetting record); // 根据主键id更新OmsOrderSetting记录,只更新不为null的字段 + + int updateByPrimaryKey(OmsOrderSetting record); // 根据主键id更新OmsOrderSetting记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsAlbumMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsAlbumMapper.java index d8172ab..0c68ade 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsAlbumMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsAlbumMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.PmsAlbum; -import com.macro.mall.model.PmsAlbumExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.PmsAlbum; // 导入了PmsAlbum实体类,用于数据库表的映射 +import com.macro.mall.model.PmsAlbumExample; // 导入了PmsAlbumExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface PmsAlbumMapper { - long countByExample(PmsAlbumExample example); +public interface PmsAlbumMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(PmsAlbumExample example); + long countByExample(PmsAlbumExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(PmsAlbumExample example); // 根据example条件删除记录 - int insert(PmsAlbum record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(PmsAlbum record); + int insert(PmsAlbum record); // 插入一条PmsAlbum记录 - List selectByExample(PmsAlbumExample example); + int insertSelective(PmsAlbum record); // 插入一条PmsAlbum记录,只插入不为null的字段 - PmsAlbum selectByPrimaryKey(Long id); + List selectByExample(PmsAlbumExample example); // 根据example条件查询PmsAlbum记录 - int updateByExampleSelective(@Param("record") PmsAlbum record, @Param("example") PmsAlbumExample example); + PmsAlbum selectByPrimaryKey(Long id); // 根据主键id查询PmsAlbum记录 - int updateByExample(@Param("record") PmsAlbum record, @Param("example") PmsAlbumExample example); + int updateByExampleSelective(@Param("record") PmsAlbum record, @Param("example") PmsAlbumExample example); // 根据example条件更新PmsAlbum记录,只更新不为null的字段 - int updateByPrimaryKeySelective(PmsAlbum record); + int updateByExample(@Param("record") PmsAlbum record, @Param("example") PmsAlbumExample example); // 根据example条件更新PmsAlbum记录 - int updateByPrimaryKey(PmsAlbum record); + int updateByPrimaryKeySelective(PmsAlbum record); // 根据主键id更新PmsAlbum记录,只更新不为null的字段 + + int updateByPrimaryKey(PmsAlbum record); // 根据主键id更新PmsAlbum记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsAlbumPicMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsAlbumPicMapper.java index 0d04ecf..a01c687 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsAlbumPicMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsAlbumPicMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.PmsAlbumPic; -import com.macro.mall.model.PmsAlbumPicExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.PmsAlbumPic; // 导入了PmsAlbumPic实体类,用于数据库表的映射 +import com.macro.mall.model.PmsAlbumPicExample; // 导入了PmsAlbumPicExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface PmsAlbumPicMapper { - long countByExample(PmsAlbumPicExample example); +public interface PmsAlbumPicMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(PmsAlbumPicExample example); + long countByExample(PmsAlbumPicExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(PmsAlbumPicExample example); // 根据example条件删除记录 - int insert(PmsAlbumPic record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(PmsAlbumPic record); + int insert(PmsAlbumPic record); // 插入一条PmsAlbumPic记录 - List selectByExample(PmsAlbumPicExample example); + int insertSelective(PmsAlbumPic record); // 插入一条PmsAlbumPic记录,只插入不为null的字段 - PmsAlbumPic selectByPrimaryKey(Long id); + List selectByExample(PmsAlbumPicExample example); // 根据example条件查询PmsAlbumPic记录 - int updateByExampleSelective(@Param("record") PmsAlbumPic record, @Param("example") PmsAlbumPicExample example); + PmsAlbumPic selectByPrimaryKey(Long id); // 根据主键id查询PmsAlbumPic记录 - int updateByExample(@Param("record") PmsAlbumPic record, @Param("example") PmsAlbumPicExample example); + int updateByExampleSelective(@Param("record") PmsAlbumPic record, @Param("example") PmsAlbumPicExample example); // 根据example条件更新PmsAlbumPic记录,只更新不为null的字段 - int updateByPrimaryKeySelective(PmsAlbumPic record); + int updateByExample(@Param("record") PmsAlbumPic record, @Param("example") PmsAlbumPicExample example); // 根据example条件更新PmsAlbumPic记录 - int updateByPrimaryKey(PmsAlbumPic record); + int updateByPrimaryKeySelective(PmsAlbumPic record); // 根据主键id更新PmsAlbumPic记录,只更新不为null的字段 + + int updateByPrimaryKey(PmsAlbumPic record); // 根据主键id更新PmsAlbumPic记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsBrandMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsBrandMapper.java index e00c2ad..3f4bac0 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsBrandMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsBrandMapper.java @@ -1,36 +1,38 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.PmsBrand; -import com.macro.mall.model.PmsBrandExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.PmsBrand; // 导入了PmsBrand实体类,用于数据库表的映射 +import com.macro.mall.model.PmsBrandExample; // 导入了PmsBrandExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface PmsBrandMapper { - long countByExample(PmsBrandExample example); +public interface PmsBrandMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(PmsBrandExample example); + long countByExample(PmsBrandExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(PmsBrandExample example); // 根据example条件删除记录 - int insert(PmsBrand record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(PmsBrand record); + int insert(PmsBrand record); // 插入一条PmsBrand记录 - List selectByExampleWithBLOBs(PmsBrandExample example); + int insertSelective(PmsBrand record); // 插入一条PmsBrand记录,只插入不为null的字段 - List selectByExample(PmsBrandExample example); + List selectByExampleWithBLOBs(PmsBrandExample example); // 根据example条件查询PmsBrand记录,包括BLOB字段 - PmsBrand selectByPrimaryKey(Long id); + List selectByExample(PmsBrandExample example); // 根据example条件查询PmsBrand记录,不包括BLOB字段 - int updateByExampleSelective(@Param("record") PmsBrand record, @Param("example") PmsBrandExample example); + PmsBrand selectByPrimaryKey(Long id); // 根据主键id查询PmsBrand记录 - int updateByExampleWithBLOBs(@Param("record") PmsBrand record, @Param("example") PmsBrandExample example); + int updateByExampleSelective(@Param("record") PmsBrand record, @Param("example") PmsBrandExample example); // 根据example条件更新PmsBrand记录,只更新不为null的字段 - int updateByExample(@Param("record") PmsBrand record, @Param("example") PmsBrandExample example); + int updateByExampleWithBLOBs(@Param("record") PmsBrand record, @Param("example") PmsBrandExample example); // 根据example条件更新PmsBrand记录,包括BLOB字段 - int updateByPrimaryKeySelective(PmsBrand record); + int updateByExample(@Param("record") PmsBrand record, @Param("example") PmsBrandExample example); // 根据example条件更新PmsBrand记录 - int updateByPrimaryKeyWithBLOBs(PmsBrand record); + int updateByPrimaryKeySelective(PmsBrand record); // 根据主键id更新PmsBrand记录,只更新不为null的字段 - int updateByPrimaryKey(PmsBrand record); + int updateByPrimaryKeyWithBLOBs(PmsBrand record); // 根据主键id更新PmsBrand记录,包括BLOB字段 + + int updateByPrimaryKey(PmsBrand record); // 根据主键id更新PmsBrand记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsCommentMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsCommentMapper.java index fe1f7e8..05171f1 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsCommentMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsCommentMapper.java @@ -1,36 +1,38 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.PmsComment; -import com.macro.mall.model.PmsCommentExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.PmsComment; // 导入了PmsComment实体类,用于数据库表的映射 +import com.macro.mall.model.PmsCommentExample; // 导入了PmsCommentExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface PmsCommentMapper { - long countByExample(PmsCommentExample example); +public interface PmsCommentMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(PmsCommentExample example); + long countByExample(PmsCommentExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(PmsCommentExample example); // 根据example条件删除记录 - int insert(PmsComment record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(PmsComment record); + int insert(PmsComment record); // 插入一条PmsComment记录 - List selectByExampleWithBLOBs(PmsCommentExample example); + int insertSelective(PmsComment record); // 插入一条PmsComment记录,只插入不为null的字段 - List selectByExample(PmsCommentExample example); + List selectByExampleWithBLOBs(PmsCommentExample example); // 根据example条件查询PmsComment记录,包括BLOB字段 - PmsComment selectByPrimaryKey(Long id); + List selectByExample(PmsCommentExample example); // 根据example条件查询PmsComment记录,不包括BLOB字段 - int updateByExampleSelective(@Param("record") PmsComment record, @Param("example") PmsCommentExample example); + PmsComment selectByPrimaryKey(Long id); // 根据主键id查询PmsComment记录 - int updateByExampleWithBLOBs(@Param("record") PmsComment record, @Param("example") PmsCommentExample example); + int updateByExampleSelective(@Param("record") PmsComment record, @Param("example") PmsCommentExample example); // 根据example条件更新PmsComment记录,只更新不为null的字段 - int updateByExample(@Param("record") PmsComment record, @Param("example") PmsCommentExample example); + int updateByExampleWithBLOBs(@Param("record") PmsComment record, @Param("example") PmsCommentExample example); // 根据example条件更新PmsComment记录,包括BLOB字段 - int updateByPrimaryKeySelective(PmsComment record); + int updateByExample(@Param("record") PmsComment record, @Param("example") PmsCommentExample example); // 根据example条件更新PmsComment记录 - int updateByPrimaryKeyWithBLOBs(PmsComment record); + int updateByPrimaryKeySelective(PmsComment record); // 根据主键id更新PmsComment记录,只更新不为null的字段 - int updateByPrimaryKey(PmsComment record); + int updateByPrimaryKeyWithBLOBs(PmsComment record); // 根据主键id更新PmsComment记录,包括BLOB字段 + + int updateByPrimaryKey(PmsComment record); // 根据主键id更新PmsComment记录 } \ No newline at end of file