From 210843442d25e407159a39c298ebffa3efa078ab Mon Sep 17 00:00:00 2001 From: 906670865 <906670865@qq.com> Date: Wed, 23 Feb 2022 11:07:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'pigx-common/pigx-common-d?= =?UTF-8?q?ata/src/main/java/com/pig4cloud/pigx/common/data/datascope/Sele?= =?UTF-8?q?ctCountByScope.java'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新 'pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/SelectListByScope.java' 更新 'pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/SelectListByScope.java' 更新 'pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/SelectListByScope.java' 更新 'pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/SelectPageByScope.java' --- .../pigx/common/data/datascope/SelectCountByScope.java | 6 +++++- .../pigx/common/data/datascope/SelectListByScope.java | 6 +++++- .../pigx/common/data/datascope/SelectPageByScope.java | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/SelectCountByScope.java b/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/SelectCountByScope.java index 603fdbbcf..c46316f16 100644 --- a/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/SelectCountByScope.java +++ b/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/SelectCountByScope.java @@ -14,6 +14,10 @@ import org.apache.ibatis.mapping.SqlSource; */ public class SelectCountByScope extends AbstractMethod { + public SelectCountByScope() { + super("selectCountByScope"); + } + @Override public MappedStatement injectMappedStatement(Class mapperClass, Class modelClass, TableInfo tableInfo) { SqlMethod sqlMethod = SqlMethod.SELECT_LIST; @@ -23,7 +27,7 @@ public class SelectCountByScope extends AbstractMethod { this.sqlComment()); SqlSource sqlSource = languageDriver.createSqlSource(configuration, sql, modelClass); - return this.addSelectMappedStatementForOther(mapperClass, "selectCountByScope", sqlSource, Integer.class); + return this.addSelectMappedStatementForOther(mapperClass, sqlSource, Integer.class); } } diff --git a/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/SelectListByScope.java b/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/SelectListByScope.java index 350fa1a30..b051afdf0 100644 --- a/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/SelectListByScope.java +++ b/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/SelectListByScope.java @@ -12,6 +12,10 @@ import org.apache.ibatis.mapping.SqlSource; */ public class SelectListByScope extends AbstractMethod { + public SelectListByScope() { + super("selectListByScope"); + } + @Override public MappedStatement injectMappedStatement(Class mapperClass, Class modelClass, TableInfo tableInfo) { SqlMethod sqlMethod = SqlMethod.SELECT_LIST; @@ -19,7 +23,7 @@ public class SelectListByScope extends AbstractMethod { tableInfo.getTableName(), this.sqlWhereEntityWrapper(true, tableInfo), this.sqlOrderBy(tableInfo), this.sqlComment()); SqlSource sqlSource = this.languageDriver.createSqlSource(this.configuration, sql, modelClass); - return this.addSelectMappedStatementForTable(mapperClass, "selectListByScope", sqlSource, tableInfo); + return this.addSelectMappedStatementForTable(mapperClass, sqlSource, tableInfo); } } diff --git a/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/SelectPageByScope.java b/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/SelectPageByScope.java index f6c43dacb..5cad05a6f 100644 --- a/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/SelectPageByScope.java +++ b/pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/SelectPageByScope.java @@ -12,6 +12,10 @@ import org.apache.ibatis.mapping.SqlSource; */ public class SelectPageByScope extends AbstractMethod { + public SelectPageByScope() { + super("selectPageByScope"); + } + @Override public MappedStatement injectMappedStatement(Class mapperClass, Class modelClass, TableInfo tableInfo) { SqlMethod sqlMethod = SqlMethod.SELECT_PAGE; @@ -19,7 +23,7 @@ public class SelectPageByScope extends AbstractMethod { tableInfo.getTableName(), this.sqlWhereEntityWrapper(true, tableInfo), this.sqlOrderBy(tableInfo), this.sqlComment()); SqlSource sqlSource = this.languageDriver.createSqlSource(this.configuration, sql, modelClass); - return this.addSelectMappedStatementForTable(mapperClass, "selectPageByScope", sqlSource, tableInfo); + return this.addSelectMappedStatementForTable(mapperClass, sqlSource, tableInfo); } }