remove: 移除行为不一致的代码。

This commit is contained in:
Suomm 2023-08-25 14:54:10 +08:00
parent ff13491389
commit 24ab62e615

View File

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