mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 09:08:24 +08:00
remove: 移除行为不一致的代码。
This commit is contained in:
parent
ff13491389
commit
24ab62e615
@ -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>保存或者更新实体类对象数据。
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user