From 05ce281128c6995dad5bdfec4be3be2e8d9faaea Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Sun, 4 Jun 2023 00:05:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BC=98=E5=8C=96=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/xyz/zhouxy/plusone/commons/jdbc/SimpleJdbcTemplate.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/xyz/zhouxy/plusone/commons/jdbc/SimpleJdbcTemplate.java b/src/main/java/xyz/zhouxy/plusone/commons/jdbc/SimpleJdbcTemplate.java index 9a70644..b5b684f 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/jdbc/SimpleJdbcTemplate.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/jdbc/SimpleJdbcTemplate.java @@ -154,6 +154,7 @@ 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();