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)); - } - /** *

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