Skip to content

Commit

Permalink
取消限制.
Browse files Browse the repository at this point in the history
  • Loading branch information
nieqiurong committed Nov 9, 2018
1 parent 59a2539 commit 43369de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ protected void injectDeleteByIdSql(boolean batch, Class<?> mapperClass, Class<?>
}
String sql = String.format(sqlMethod.getSql(), table.getTableName(), sqlLogicSet(table),
table.getKeyColumn(), idStr);
sqlSource = languageDriver.createSqlSource(configuration, sql, modelClass);
sqlSource = languageDriver.createSqlSource(configuration, sql, Object.class);
this.addUpdateMappedStatement(mapperClass, modelClass, sqlMethod.getMethod(), sqlSource);
} else {
// 正常删除
Expand Down Expand Up @@ -127,7 +127,7 @@ protected void injectSelectByIdSql(boolean batch, Class<?> mapperClass, Class<?>
table.getTableName(), table.getKeyColumn(), ids.toString(), getLogicDeleteSql(table)), modelClass);
} else {
sqlSource = new RawSqlSource(configuration, String.format(sqlMethod.getSql(), sqlSelectColumns(table, false), table.getTableName(),
table.getKeyColumn(), table.getKeyProperty(), getLogicDeleteSql(table)), modelClass);
table.getKeyColumn(), table.getKeyProperty(), getLogicDeleteSql(table)), Object.class);
}
this.addSelectMappedStatement(mapperClass, sqlMethod.getMethod(), sqlSource, modelClass, table);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ protected void injectDeleteByIdSql(boolean batch, Class<?> mapperClass, Class<?>
idStr = ids.toString();
}
String sql = String.format(sqlMethod.getSql(), table.getTableName(), table.getKeyColumn(), idStr);
sqlSource = languageDriver.createSqlSource(configuration, sql, modelClass);
sqlSource = languageDriver.createSqlSource(configuration, sql, Object.class);
this.addDeleteMappedStatement(mapperClass, sqlMethod.getMethod(), sqlSource);
}

Expand Down Expand Up @@ -422,7 +422,7 @@ protected void injectSelectByIdSql(boolean batch, Class<?> mapperClass, Class<?>
sqlSelectColumns(table, false), table.getTableName(), table.getKeyColumn(), ids.toString()), modelClass);
} else {
sqlSource = new RawSqlSource(configuration, String.format(sqlMethod.getSql(), sqlSelectColumns(table, false),
table.getTableName(), table.getKeyColumn(), table.getKeyProperty()), modelClass);
table.getTableName(), table.getKeyColumn(), table.getKeyProperty()), Object.class);
}
this.addSelectMappedStatement(mapperClass, sqlMethod.getMethod(), sqlSource, modelClass, table);
}
Expand Down

0 comments on commit 43369de

Please sign in to comment.