From d068fb6f73249141b41c37d879362688570a83f1 Mon Sep 17 00:00:00 2001 From: wj <1285151836@qq.com> Date: Wed, 24 May 2023 19:27:29 +0800 Subject: [PATCH] =?UTF-8?q?insertIgnoreBatch/replaceBatch=E6=94=B9?= =?UTF-8?q?=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/glxp/api/dao/BaseMapperPlus.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/glxp/api/dao/BaseMapperPlus.java b/src/main/java/com/glxp/api/dao/BaseMapperPlus.java index 77ce77ec..3d3a64bc 100644 --- a/src/main/java/com/glxp/api/dao/BaseMapperPlus.java +++ b/src/main/java/com/glxp/api/dao/BaseMapperPlus.java @@ -307,7 +307,7 @@ public interface BaseMapperPlus extends BaseMapper { oneBatchList.add(element); if (i == idxLimit) { - this.insertIgnoreBatch(oneBatchList); + this.replaceBatch(oneBatchList); //每次提交后需要清空集合数据 oneBatchList.clear(); idxLimit = Math.min(idxLimit + batchSize, size);