From 24ab62e6159ccc9542f81f9ade4ca80b2687d31a Mon Sep 17 00:00:00 2001 From: Suomm <1474983351@qq.com> Date: Fri, 25 Aug 2023 14:54:10 +0800 Subject: [PATCH] =?UTF-8?q?remove:=20=E7=A7=BB=E9=99=A4=E8=A1=8C=E4=B8=BA?= =?UTF-8?q?=E4=B8=8D=E4=B8=80=E8=87=B4=E7=9A=84=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mybatisflex/core/service/IService.java | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/service/IService.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/service/IService.java index 64db3362..816a5820 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/service/IService.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/service/IService.java @@ -93,34 +93,6 @@ public interface IService { return SqlUtil.toBool(Db.executeBatch(entities, batchSize, usefulClass, BaseMapper::insertSelective)); } - /** - *

批量保存实体类对象数据。 - * - * @param entities 实体类对象 - * @return {@code true} 保存成功,{@code false} 保存失败。 - * @deprecated 为保持 Service 层 API 一致性,默认方法都是忽略实体类 {@code null} 属性的数据。 - * 另外,该方法将在 1.6.0 版本被移除。 - */ - @Deprecated - default boolean saveBatchSelective(Collection entities) { - return saveBatchSelective(entities, DEFAULT_BATCH_SIZE); - } - - /** - *

批量保存实体类对象数据。 - * - * @param entities 实体类对象 - * @param batchSize 每次保存切分的数量 - * @return {@code true} 保存成功,{@code false} 保存失败。 - * @deprecated 为保持 Service 层 API 一致性,默认方法都是忽略实体类 {@code null} 属性的数据。 - * 另外,该方法将在 1.6.0 版本被移除。 - */ - @Deprecated - default boolean saveBatchSelective(Collection entities, int batchSize) { - Class> usefulClass = (Class>) ClassUtil.getUsefulClass(getMapper().getClass()); - return SqlUtil.toBool(Db.executeBatch(entities, batchSize, usefulClass, BaseMapper::insertSelective)); - } - /** *

保存或者更新实体类对象数据。 *