1
0

refactor(service): 将删除服务接口参数类型从 Iterable 改为 Set

This commit is contained in:
2026-01-07 11:29:03 +08:00
parent d08f9db9ac
commit af4be9db8f
2 changed files with 4 additions and 2 deletions

View File

@@ -593,7 +593,7 @@ public abstract class SimpleServiceSupport<ENTITY extends SimpleEntity> implemen
*/
@Transactional(rollbackOn = Throwable.class)
@Override
public void remove(Iterable<Long> ids) {
public void remove(Set<Long> ids) {
if (ObjectHelper.isNotEmpty(ids)) {
repository.deleteBatchByIds(ids);
}