From 147a90302d8a9d7229f99b4ad938348a1b72f880 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期四, 20 六月 2024 09:49:18 +0800 Subject: [PATCH] fix 修复 临时修复 mp3.5.7 批处理判断bug --- ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/core/mapper/BaseMapperPlus.java | 24 ++++++++++++++++++------ 1 files changed, 18 insertions(+), 6 deletions(-) diff --git a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/core/mapper/BaseMapperPlus.java b/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/core/mapper/BaseMapperPlus.java index 5f0829e..3889250 100644 --- a/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/core/mapper/BaseMapperPlus.java +++ b/ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/core/mapper/BaseMapperPlus.java @@ -50,42 +50,54 @@ * 鎵归噺鎻掑叆 */ default boolean insertBatch(Collection<T> entityList) { - return Db.saveBatch(entityList); + Db.saveBatch(entityList); + // 涓存椂瑙e喅 鏂扮増鏈� mp 鎻掑叆鐘舵�佸垽鏂敊璇棶棰� + return true; } /** * 鎵归噺鏇存柊 */ default boolean updateBatchById(Collection<T> entityList) { - return Db.updateBatchById(entityList); + Db.updateBatchById(entityList); + // 涓存椂瑙e喅 鏂扮増鏈� mp 鎻掑叆鐘舵�佸垽鏂敊璇棶棰� + return true; } /** * 鎵归噺鎻掑叆鎴栨洿鏂� */ default boolean insertOrUpdateBatch(Collection<T> entityList) { - return Db.saveOrUpdateBatch(entityList); + Db.saveOrUpdateBatch(entityList); + // 涓存椂瑙e喅 鏂扮増鏈� mp 鎻掑叆鐘舵�佸垽鏂敊璇棶棰� + return true; } /** * 鎵归噺鎻掑叆(鍖呭惈闄愬埗鏉℃暟) */ default boolean insertBatch(Collection<T> entityList, int batchSize) { - return Db.saveBatch(entityList, batchSize); + Db.saveBatch(entityList, batchSize); + // 涓存椂瑙e喅 鏂扮増鏈� mp 鎻掑叆鐘舵�佸垽鏂敊璇棶棰� + return true; } /** * 鎵归噺鏇存柊(鍖呭惈闄愬埗鏉℃暟) */ default boolean updateBatchById(Collection<T> entityList, int batchSize) { - return Db.updateBatchById(entityList, batchSize); + Db.updateBatchById(entityList, batchSize); + // 涓存椂瑙e喅 鏂扮増鏈� mp 鎻掑叆鐘舵�佸垽鏂敊璇棶棰� + return true; } /** * 鎵归噺鎻掑叆鎴栨洿鏂�(鍖呭惈闄愬埗鏉℃暟) */ default boolean insertOrUpdateBatch(Collection<T> entityList, int batchSize) { - return Db.saveOrUpdateBatch(entityList, batchSize); + Db.saveOrUpdateBatch(entityList, batchSize); + // 涓存椂瑙e喅 鏂扮増鏈� mp 鎻掑叆鐘舵�佸垽鏂敊璇棶棰� + return true; } default V selectVoById(Serializable id) { -- Gitblit v1.9.3