feat:限制导出
This commit is contained in:
1 parent
30cc11c44e
commit
e717df69ba
10 files changed
+87
-50
No files matched your search
+2
-2
@@ -20,9 +20,9 @@ public class SelectCountByScope extends AbstractMethod {
|
||||
|
||||
@Override
|
||||
public MappedStatement injectMappedStatement(Class<?> mapperClass, Class<?> modelClass, TableInfo tableInfo) {
|
||||
SqlMethod sqlMethod = SqlMethod.SELECT_LIST;
|
||||
SqlMethod sqlMethod = SqlMethod.SELECT_COUNT;
|
||||
|
||||
String sql = String.format(sqlMethod.getSql(), this.sqlFirst(), this.sqlSelectColumns(tableInfo, true),
|
||||
String sql = String.format(sqlMethod.getSql(), this.sqlFirst(), "*",
|
||||
tableInfo.getTableName(), this.sqlWhereEntityWrapper(true, tableInfo), this.sqlOrderBy(tableInfo),
|
||||
this.sqlComment());
|
||||
SqlSource sqlSource = languageDriver.createSqlSource(configuration, sql, modelClass);
|
||||
|
||||
Reference in new issue
Block a user