|
@@ -28,7 +28,6 @@ import org.apache.ibatis.mapping.SqlSource;
|
|
* @author hubin
|
|
* @author hubin
|
|
* @since 2018-04-06
|
|
* @since 2018-04-06
|
|
*/
|
|
*/
|
|
-@SuppressWarnings("serial")
|
|
|
|
public class DeleteBatchByIds extends AbstractMethod {
|
|
public class DeleteBatchByIds extends AbstractMethod {
|
|
|
|
|
|
public DeleteBatchByIds() {
|
|
public DeleteBatchByIds() {
|
|
@@ -49,7 +48,7 @@ public class DeleteBatchByIds extends AbstractMethod {
|
|
SqlMethod sqlMethod = SqlMethod.LOGIC_DELETE_BATCH_BY_IDS;
|
|
SqlMethod sqlMethod = SqlMethod.LOGIC_DELETE_BATCH_BY_IDS;
|
|
if (tableInfo.isWithLogicDelete()) {
|
|
if (tableInfo.isWithLogicDelete()) {
|
|
sql = logicDeleteScript(tableInfo, sqlMethod);
|
|
sql = logicDeleteScript(tableInfo, sqlMethod);
|
|
- SqlSource sqlSource = languageDriver.createSqlSource(configuration, sql, Object.class);
|
|
|
|
|
|
+ SqlSource sqlSource = super.createSqlSource(configuration, sql, Object.class);
|
|
return addUpdateMappedStatement(mapperClass, modelClass, methodName, sqlSource);
|
|
return addUpdateMappedStatement(mapperClass, modelClass, methodName, sqlSource);
|
|
} else {
|
|
} else {
|
|
sqlMethod = SqlMethod.DELETE_BATCH_BY_IDS;
|
|
sqlMethod = SqlMethod.DELETE_BATCH_BY_IDS;
|
|
@@ -58,7 +57,7 @@ public class DeleteBatchByIds extends AbstractMethod {
|
|
SqlScriptUtils.convertChoose("@org.apache.ibatis.type.SimpleTypeRegistry@isSimpleType(item.getClass())",
|
|
SqlScriptUtils.convertChoose("@org.apache.ibatis.type.SimpleTypeRegistry@isSimpleType(item.getClass())",
|
|
"#{item}", "#{item." + tableInfo.getKeyProperty() + "}"),
|
|
"#{item}", "#{item." + tableInfo.getKeyProperty() + "}"),
|
|
COLL, null, "item", COMMA));
|
|
COLL, null, "item", COMMA));
|
|
- SqlSource sqlSource = languageDriver.createSqlSource(configuration, sql, Object.class);
|
|
|
|
|
|
+ SqlSource sqlSource = super.createSqlSource(configuration, sql, Object.class);
|
|
return this.addDeleteMappedStatement(mapperClass, methodName, sqlSource);
|
|
return this.addDeleteMappedStatement(mapperClass, methodName, sqlSource);
|
|
}
|
|
}
|
|
}
|
|
}
|