From 107c49699f562d0be91932a3f25adc85fae661f1 Mon Sep 17 00:00:00 2001 From: Peter Ji Date: Thu, 13 Aug 2020 16:32:08 +0800 Subject: [PATCH] =?UTF-8?q?insertOrUpdateBatch=E6=96=B9=E6=B3=95=E6=9B=B4?= =?UTF-8?q?=E6=96=B0javadoc=EF=BC=8C=E6=8F=90=E9=86=92=E5=85=A5=E5=8F=82?= =?UTF-8?q?=E6=98=AF=E7=A9=BAList=E7=9A=84=E6=97=B6=E5=80=99=E4=BC=9A?= =?UTF-8?q?=E6=8A=9BSQL=E8=AF=AD=E5=8F=A5=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/template/Default/dao.java.vm | 1 + src/main/resources/template/MybatisPlus-Mixed/dao.vm | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/resources/template/Default/dao.java.vm b/src/main/resources/template/Default/dao.java.vm index a42f6a9..fcbbadf 100644 --- a/src/main/resources/template/Default/dao.java.vm +++ b/src/main/resources/template/Default/dao.java.vm @@ -70,6 +70,7 @@ public interface $!{tableName} { * * @param entities List<$!{tableInfo.name}> 实例对象列表 * @return 影响行数 + * @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<$!{tableInfo.name}> entities); diff --git a/src/main/resources/template/MybatisPlus-Mixed/dao.vm b/src/main/resources/template/MybatisPlus-Mixed/dao.vm index 853ab05..bef511b 100644 --- a/src/main/resources/template/MybatisPlus-Mixed/dao.vm +++ b/src/main/resources/template/MybatisPlus-Mixed/dao.vm @@ -33,6 +33,7 @@ int insertBatch(@Param("entities") List<$!{tableInfo.name}> entities); * * @param entities List<$!{tableInfo.name}> 实例对象列表 * @return 影响行数 +* @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参 */ int insertOrUpdateBatch(@Param("entities") List<$!{tableInfo.name}> entities);