添加优化计划。

This commit is contained in:
zhouxy108 2023-06-05 15:04:38 +08:00
parent 7e467afc4d
commit 1434074ced

View File

@ -61,6 +61,7 @@ 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]);
}
}
@ -140,6 +141,7 @@ 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]);
}
}