feat: 优化批量删除
This commit is contained in:
@@ -616,7 +616,7 @@ public abstract class SimpleServiceSupport<ENTITY extends SimpleEntity> implemen
|
|||||||
@Override
|
@Override
|
||||||
public void remove(Iterable<Long> ids) {
|
public void remove(Iterable<Long> ids) {
|
||||||
if (ObjectHelper.isNotEmpty(ids)) {
|
if (ObjectHelper.isNotEmpty(ids)) {
|
||||||
repository.deleteAllById(ids);
|
repository.deleteBatchByIds(ids);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user