feat:限制导出

This commit is contained in:
dzc committed 2025-10-20 19:02:02 +08:00
1 parent 30cc11c44e
commit e717df69ba
10 files changed
+87 -50

No files matched your search

@@ -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);