From b3eb3a97ff30b7689a518b36149cdc34c75cac1b Mon Sep 17 00:00:00 2001 From: zhoushen <2013650704@qq.com> Date: Sun, 15 Dec 2024 21:27:39 +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 --- .../mapper/PmsProductFullReductionMapper.java | 36 ++++++++-------- .../mall/mapper/PmsProductLadderMapper.java | 36 ++++++++-------- .../macro/mall/mapper/PmsProductMapper.java | 42 ++++++++++--------- .../mapper/PmsProductOperateLogMapper.java | 36 ++++++++-------- .../mapper/PmsProductVertifyRecordMapper.java | 36 ++++++++-------- 5 files changed, 98 insertions(+), 88 deletions(-) diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductFullReductionMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductFullReductionMapper.java index 193aab3..3d95d58 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductFullReductionMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductFullReductionMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.PmsProductFullReduction; -import com.macro.mall.model.PmsProductFullReductionExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.PmsProductFullReduction; // 导入了PmsProductFullReduction实体类,用于数据库表的映射 +import com.macro.mall.model.PmsProductFullReductionExample; // 导入了PmsProductFullReductionExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface PmsProductFullReductionMapper { - long countByExample(PmsProductFullReductionExample example); +public interface PmsProductFullReductionMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(PmsProductFullReductionExample example); + long countByExample(PmsProductFullReductionExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(PmsProductFullReductionExample example); // 根据example条件删除记录 - int insert(PmsProductFullReduction record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(PmsProductFullReduction record); + int insert(PmsProductFullReduction record); // 插入一条PmsProductFullReduction记录 - List selectByExample(PmsProductFullReductionExample example); + int insertSelective(PmsProductFullReduction record); // 插入一条PmsProductFullReduction记录,只插入不为null的字段 - PmsProductFullReduction selectByPrimaryKey(Long id); + List selectByExample(PmsProductFullReductionExample example); // 根据example条件查询PmsProductFullReduction记录 - int updateByExampleSelective(@Param("record") PmsProductFullReduction record, @Param("example") PmsProductFullReductionExample example); + PmsProductFullReduction selectByPrimaryKey(Long id); // 根据主键id查询PmsProductFullReduction记录 - int updateByExample(@Param("record") PmsProductFullReduction record, @Param("example") PmsProductFullReductionExample example); + int updateByExampleSelective(@Param("record") PmsProductFullReduction record, @Param("example") PmsProductFullReductionExample example); // 根据example条件更新PmsProductFullReduction记录,只更新不为null的字段 - int updateByPrimaryKeySelective(PmsProductFullReduction record); + int updateByExample(@Param("record") PmsProductFullReduction record, @Param("example") PmsProductFullReductionExample example); // 根据example条件更新PmsProductFullReduction记录 - int updateByPrimaryKey(PmsProductFullReduction record); + int updateByPrimaryKeySelective(PmsProductFullReduction record); // 根据主键id更新PmsProductFullReduction记录,只更新不为null的字段 + + int updateByPrimaryKey(PmsProductFullReduction record); // 根据主键id更新PmsProductFullReduction记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductLadderMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductLadderMapper.java index e2167aa..ee3af84 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductLadderMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductLadderMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.PmsProductLadder; -import com.macro.mall.model.PmsProductLadderExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.PmsProductLadder; // 导入了PmsProductLadder实体类,用于数据库表的映射 +import com.macro.mall.model.PmsProductLadderExample; // 导入了PmsProductLadderExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface PmsProductLadderMapper { - long countByExample(PmsProductLadderExample example); +public interface PmsProductLadderMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(PmsProductLadderExample example); + long countByExample(PmsProductLadderExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(PmsProductLadderExample example); // 根据example条件删除记录 - int insert(PmsProductLadder record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(PmsProductLadder record); + int insert(PmsProductLadder record); // 插入一条PmsProductLadder记录 - List selectByExample(PmsProductLadderExample example); + int insertSelective(PmsProductLadder record); // 插入一条PmsProductLadder记录,只插入不为null的字段 - PmsProductLadder selectByPrimaryKey(Long id); + List selectByExample(PmsProductLadderExample example); // 根据example条件查询PmsProductLadder记录 - int updateByExampleSelective(@Param("record") PmsProductLadder record, @Param("example") PmsProductLadderExample example); + PmsProductLadder selectByPrimaryKey(Long id); // 根据主键id查询PmsProductLadder记录 - int updateByExample(@Param("record") PmsProductLadder record, @Param("example") PmsProductLadderExample example); + int updateByExampleSelective(@Param("record") PmsProductLadder record, @Param("example") PmsProductLadderExample example); // 根据example条件更新PmsProductLadder记录,只更新不为null的字段 - int updateByPrimaryKeySelective(PmsProductLadder record); + int updateByExample(@Param("record") PmsProductLadder record, @Param("example") PmsProductLadderExample example); // 根据example条件更新PmsProductLadder记录 - int updateByPrimaryKey(PmsProductLadder record); + int updateByPrimaryKeySelective(PmsProductLadder record); // 根据主键id更新PmsProductLadder记录,只更新不为null的字段 + + int updateByPrimaryKey(PmsProductLadder record); // 根据主键id更新PmsProductLadder记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductMapper.java index 4b619b7..b11c9f8 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductMapper.java @@ -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 selectByExampleWithBLOBs(PmsProductExample example); + int insertSelective(PmsProduct record); // 插入一条PmsProduct记录,只插入不为null的字段 - List selectByExample(PmsProductExample example); + List selectByExampleWithBLOBs(PmsProductExample example); // 根据example条件查询PmsProduct记录,包括BLOB字段 - PmsProduct selectByPrimaryKey(Long id); + List 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记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductOperateLogMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductOperateLogMapper.java index 9b1474e..4c4e01b 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductOperateLogMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductOperateLogMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.PmsProductOperateLog; -import com.macro.mall.model.PmsProductOperateLogExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.PmsProductOperateLog; // 导入了PmsProductOperateLog实体类,用于数据库表的映射 +import com.macro.mall.model.PmsProductOperateLogExample; // 导入了PmsProductOperateLogExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface PmsProductOperateLogMapper { - long countByExample(PmsProductOperateLogExample example); +public interface PmsProductOperateLogMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(PmsProductOperateLogExample example); + long countByExample(PmsProductOperateLogExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(PmsProductOperateLogExample example); // 根据example条件删除记录 - int insert(PmsProductOperateLog record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(PmsProductOperateLog record); + int insert(PmsProductOperateLog record); // 插入一条PmsProductOperateLog记录 - List selectByExample(PmsProductOperateLogExample example); + int insertSelective(PmsProductOperateLog record); // 插入一条PmsProductOperateLog记录,只插入不为null的字段 - PmsProductOperateLog selectByPrimaryKey(Long id); + List selectByExample(PmsProductOperateLogExample example); // 根据example条件查询PmsProductOperateLog记录 - int updateByExampleSelective(@Param("record") PmsProductOperateLog record, @Param("example") PmsProductOperateLogExample example); + PmsProductOperateLog selectByPrimaryKey(Long id); // 根据主键id查询PmsProductOperateLog记录 - int updateByExample(@Param("record") PmsProductOperateLog record, @Param("example") PmsProductOperateLogExample example); + int updateByExampleSelective(@Param("record") PmsProductOperateLog record, @Param("example") PmsProductOperateLogExample example); // 根据example条件更新PmsProductOperateLog记录,只更新不为null的字段 - int updateByPrimaryKeySelective(PmsProductOperateLog record); + int updateByExample(@Param("record") PmsProductOperateLog record, @Param("example") PmsProductOperateLogExample example); // 根据example条件更新PmsProductOperateLog记录 - int updateByPrimaryKey(PmsProductOperateLog record); + int updateByPrimaryKeySelective(PmsProductOperateLog record); // 根据主键id更新PmsProductOperateLog记录,只更新不为null的字段 + + int updateByPrimaryKey(PmsProductOperateLog record); // 根据主键id更新PmsProductOperateLog记录 } \ No newline at end of file diff --git a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductVertifyRecordMapper.java b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductVertifyRecordMapper.java index f8e048d..e63f743 100644 --- a/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductVertifyRecordMapper.java +++ b/mall-mbg/src/main/java/com/macro/mall/mapper/PmsProductVertifyRecordMapper.java @@ -1,30 +1,32 @@ -package com.macro.mall.mapper; +package com.macro.mall.mapper; // 定义了该接口所属的包名,用于Java的包管理 -import com.macro.mall.model.PmsProductVertifyRecord; -import com.macro.mall.model.PmsProductVertifyRecordExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; +import com.macro.mall.model.PmsProductVertifyRecord; // 导入了PmsProductVertifyRecord实体类,用于数据库表的映射 +import com.macro.mall.model.PmsProductVertifyRecordExample; // 导入了PmsProductVertifyRecordExample类,用于构建查询条件 +import java.util.List; // 导入了List接口,用于存储查询结果集 +import org.apache.ibatis.annotations.Param; // 导入了MyBatis的Param注解,用于指定参数名称 -public interface PmsProductVertifyRecordMapper { - long countByExample(PmsProductVertifyRecordExample example); +public interface PmsProductVertifyRecordMapper { // 声明了一个MyBatis的Mapper接口,用于数据库操作 + // 以下方法都是MyBatis映射的方法,用于数据库的CRUD操作 - int deleteByExample(PmsProductVertifyRecordExample example); + long countByExample(PmsProductVertifyRecordExample example); // 根据example条件统计记录数 - int deleteByPrimaryKey(Long id); + int deleteByExample(PmsProductVertifyRecordExample example); // 根据example条件删除记录 - int insert(PmsProductVertifyRecord record); + int deleteByPrimaryKey(Long id); // 根据主键id删除记录 - int insertSelective(PmsProductVertifyRecord record); + int insert(PmsProductVertifyRecord record); // 插入一条PmsProductVertifyRecord记录 - List selectByExample(PmsProductVertifyRecordExample example); + int insertSelective(PmsProductVertifyRecord record); // 插入一条PmsProductVertifyRecord记录,只插入不为null的字段 - PmsProductVertifyRecord selectByPrimaryKey(Long id); + List selectByExample(PmsProductVertifyRecordExample example); // 根据example条件查询PmsProductVertifyRecord记录 - int updateByExampleSelective(@Param("record") PmsProductVertifyRecord record, @Param("example") PmsProductVertifyRecordExample example); + PmsProductVertifyRecord selectByPrimaryKey(Long id); // 根据主键id查询PmsProductVertifyRecord记录 - int updateByExample(@Param("record") PmsProductVertifyRecord record, @Param("example") PmsProductVertifyRecordExample example); + int updateByExampleSelective(@Param("record") PmsProductVertifyRecord record, @Param("example") PmsProductVertifyRecordExample example); // 根据example条件更新PmsProductVertifyRecord记录,只更新不为null的字段 - int updateByPrimaryKeySelective(PmsProductVertifyRecord record); + int updateByExample(@Param("record") PmsProductVertifyRecord record, @Param("example") PmsProductVertifyRecordExample example); // 根据example条件更新PmsProductVertifyRecord记录 - int updateByPrimaryKey(PmsProductVertifyRecord record); + int updateByPrimaryKeySelective(PmsProductVertifyRecord record); // 根据主键id更新PmsProductVertifyRecord记录,只更新不为null的字段 + + int updateByPrimaryKey(PmsProductVertifyRecord record); // 根据主键id更新PmsProductVertifyRecord记录 } \ No newline at end of file