更新 'pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/SelectCountByScope.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/SelectListByScope.java' 更新 'pigx-common/pigx-common-data/src/main/java/com/pig4cloud/pigx/common/data/datascope/SelectPageByScope.java'
This commit is contained in:
1 parent
c8d3a24cff
commit
210843442d
3 files changed
+15
-3
No files matched your search
+5
-1
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
+5
-1
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
+5
-1
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user