|
@@ -15,11 +15,12 @@
|
|
|
*/
|
|
|
package com.baomidou.mybatisplus.extension.injector.methods;
|
|
|
|
|
|
+import org.apache.ibatis.mapping.MappedStatement;
|
|
|
+import org.apache.ibatis.mapping.SqlSource;
|
|
|
+
|
|
|
import com.baomidou.mybatisplus.core.enums.SqlMethod;
|
|
|
import com.baomidou.mybatisplus.core.metadata.TableInfo;
|
|
|
import com.baomidou.mybatisplus.extension.injector.AbstractLogicMethod;
|
|
|
-import org.apache.ibatis.mapping.MappedStatement;
|
|
|
-import org.apache.ibatis.mapping.SqlSource;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -37,6 +38,6 @@ public class LogicSelectObjs extends AbstractLogicMethod {
|
|
|
String sql = String.format(sqlMethod.getSql(), sqlSelectObjsColumns(tableInfo),
|
|
|
tableInfo.getTableName(), sqlWhereEntityWrapper(true, tableInfo));
|
|
|
SqlSource sqlSource = languageDriver.createSqlSource(configuration, sql, modelClass);
|
|
|
- return addSelectMappedStatement(mapperClass, sqlMethod.getMethod(), sqlSource, modelClass, tableInfo);
|
|
|
+ return addSelectMappedStatement(mapperClass, sqlMethod.getMethod(), sqlSource, Object.class, tableInfo);
|
|
|
}
|
|
|
}
|