From 272ca613ee64154882111851a06f3e182fedba8a Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期四, 19 九月 2024 13:45:57 +0800 Subject: [PATCH] update mybatis-plus 3.5.7 => 3.5.8 代码适配更改 --- ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/core/mapper/BaseMapperPlus.java | 26 ++++++-------------------- 1 files changed, 6 insertions(+), 20 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 956be9f..a8a1e86 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 @@ -18,9 +18,7 @@ import java.util.Collection; import java.util.List; import java.util.Map; -import java.util.Objects; import java.util.function.Function; -import java.util.stream.Collectors; /** * 鑷畾涔� Mapper 鎺ュ彛, 瀹炵幇 鑷畾涔夋墿灞� @@ -69,9 +67,7 @@ * @return 鎻掑叆鎿嶄綔鏄惁鎴愬姛鐨勫竷灏斿�� */ default boolean insertBatch(Collection<T> entityList) { - Db.saveBatch(entityList); - // 涓存椂瑙e喅 鏂扮増鏈� mp 鎻掑叆鐘舵�佸垽鏂敊璇棶棰� - return true; + return Db.saveBatch(entityList); } /** @@ -81,9 +77,7 @@ * @return 鏇存柊鎿嶄綔鏄惁鎴愬姛鐨勫竷灏斿�� */ default boolean updateBatchById(Collection<T> entityList) { - Db.updateBatchById(entityList); - // 涓存椂瑙e喅 鏂扮増鏈� mp 鎻掑叆鐘舵�佸垽鏂敊璇棶棰� - return true; + return Db.updateBatchById(entityList); } /** @@ -93,9 +87,7 @@ * @return 鎻掑叆鎴栨洿鏂版搷浣滄槸鍚︽垚鍔熺殑甯冨皵鍊� */ default boolean insertOrUpdateBatch(Collection<T> entityList) { - Db.saveOrUpdateBatch(entityList); - // 涓存椂瑙e喅 鏂扮増鏈� mp 鎻掑叆鐘舵�佸垽鏂敊璇棶棰� - return true; + return Db.saveOrUpdateBatch(entityList); } /** @@ -106,9 +98,7 @@ * @return 鎻掑叆鎿嶄綔鏄惁鎴愬姛鐨勫竷灏斿�� */ default boolean insertBatch(Collection<T> entityList, int batchSize) { - Db.saveBatch(entityList, batchSize); - // 涓存椂瑙e喅 鏂扮増鏈� mp 鎻掑叆鐘舵�佸垽鏂敊璇棶棰� - return true; + return Db.saveBatch(entityList, batchSize); } /** @@ -119,9 +109,7 @@ * @return 鏇存柊鎿嶄綔鏄惁鎴愬姛鐨勫竷灏斿�� */ default boolean updateBatchById(Collection<T> entityList, int batchSize) { - Db.updateBatchById(entityList, batchSize); - // 涓存椂瑙e喅 鏂扮増鏈� mp 鎻掑叆鐘舵�佸垽鏂敊璇棶棰� - return true; + return Db.updateBatchById(entityList, batchSize); } /** @@ -132,9 +120,7 @@ * @return 鎻掑叆鎴栨洿鏂版搷浣滄槸鍚︽垚鍔熺殑甯冨皵鍊� */ default boolean insertOrUpdateBatch(Collection<T> entityList, int batchSize) { - Db.saveOrUpdateBatch(entityList, batchSize); - // 涓存椂瑙e喅 鏂扮増鏈� mp 鎻掑叆鐘舵�佸垽鏂敊璇棶棰� - return true; + return Db.saveOrUpdateBatch(entityList, batchSize); } /** -- Gitblit v1.9.3