取消优化计划。

This commit is contained in:
zhouxy108 2023-06-15 10:46:33 +08:00
parent 15ed8c908e
commit 23739dc9d5

View File

@ -118,7 +118,6 @@ public class SimpleJdbcTemplate {
try (PreparedStatement stmt = this.conn.prepareStatement(sql)) {
if (params != null && params.length > 0) {
for (int i = 0; i < params.length; i++) {
// TODO 优化 参考 Spring JDBC StatementCreatorUtils.setValue 方法调用 PreparedStatement 不同的 setXxx 方法
stmt.setObject(i + 1, params[i]);
}
}
@ -198,7 +197,6 @@ public class SimpleJdbcTemplate {
try (PreparedStatement stmt = this.conn.prepareStatement(sql)) {
if (params != null && params.length > 0) {
for (int i = 0; i < params.length; i++) {
// TODO 优化 参考 Spring JDBC StatementCreatorUtils.setValue 方法调用 PreparedStatement 不同的 setXxx 方法
stmt.setObject(i + 1, params[i]);
}
}
@ -213,7 +211,6 @@ public class SimpleJdbcTemplate {
for (Object[] ps : params) {
i++;
for (int j = 0; j < ps.length; j++) {
// TODO 优化 参考 Spring JDBC StatementCreatorUtils.setValue 方法调用 PreparedStatement 不同的 setXxx 方法
stmt.setObject(j + 1, ps[j]);
}
stmt.addBatch();