forked from plusone/plusone-commons
添加优化计划。
This commit is contained in:
parent
7e467afc4d
commit
1434074ced
@ -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]);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user