|
@@ -32,15 +32,9 @@ public class SelectOne extends AbstractMethod {
|
|
|
@Override
|
|
|
public MappedStatement injectMappedStatement(Class<?> mapperClass, Class<?> modelClass, TableInfo tableInfo) {
|
|
|
SqlMethod sqlMethod = SqlMethod.SELECT_ONE;
|
|
|
- SqlSource sqlSource = languageDriver.createSqlSource(configuration,
|
|
|
- String.format(
|
|
|
- sqlMethod.getSql(),
|
|
|
- sqlFirst(),
|
|
|
- this.sqlSelectColumns(tableInfo, true),
|
|
|
- tableInfo.getTableName(),
|
|
|
- this.sqlWhereEntityWrapper(true, tableInfo),
|
|
|
- sqlComment()),
|
|
|
- modelClass);
|
|
|
+ SqlSource sqlSource = languageDriver.createSqlSource(configuration, String.format(sqlMethod.getSql(),
|
|
|
+ sqlFirst(), sqlSelectColumns(tableInfo, true), tableInfo.getTableName(),
|
|
|
+ sqlWhereEntityWrapper(true, tableInfo), sqlComment()), modelClass);
|
|
|
return this.addSelectMappedStatementForTable(mapperClass, getMethod(sqlMethod), sqlSource, tableInfo);
|
|
|
}
|
|
|
}
|