|
@@ -34,13 +34,8 @@ public class SelectMapsPage extends AbstractMethod {
|
|
@Override
|
|
@Override
|
|
public MappedStatement injectMappedStatement(Class<?> mapperClass, Class<?> modelClass, TableInfo tableInfo) {
|
|
public MappedStatement injectMappedStatement(Class<?> mapperClass, Class<?> modelClass, TableInfo tableInfo) {
|
|
SqlMethod sqlMethod = SqlMethod.SELECT_MAPS_PAGE;
|
|
SqlMethod sqlMethod = SqlMethod.SELECT_MAPS_PAGE;
|
|
- String sql = String.format(
|
|
|
|
- sqlMethod.getSql(),
|
|
|
|
- sqlFirst(),
|
|
|
|
- sqlSelectColumns(tableInfo, true),
|
|
|
|
- tableInfo.getTableName(),
|
|
|
|
- sqlWhereEntityWrapper(true, tableInfo),
|
|
|
|
- sqlComment());
|
|
|
|
|
|
+ String sql = String.format(sqlMethod.getSql(), sqlFirst(), sqlSelectColumns(tableInfo, true),
|
|
|
|
+ tableInfo.getTableName(), sqlWhereEntityWrapper(true, tableInfo), sqlComment());
|
|
SqlSource sqlSource = languageDriver.createSqlSource(configuration, sql, modelClass);
|
|
SqlSource sqlSource = languageDriver.createSqlSource(configuration, sql, modelClass);
|
|
return this.addSelectMappedStatementForOther(mapperClass, getMethod(sqlMethod), sqlSource, Map.class);
|
|
return this.addSelectMappedStatementForOther(mapperClass, getMethod(sqlMethod), sqlSource, Map.class);
|
|
}
|
|
}
|