mirror of
https://github.com/BgaSol/sol-cloud
synced 2026-04-21 17:17:16 +00:00
refactor: remove deprecated delete overloads in BaseService
This commit is contained in:
parent
0ff3b3c052
commit
0e1125a663
1 changed files with 0 additions and 22 deletions
|
|
@ -418,16 +418,6 @@ public abstract class BaseService<ENTITY extends BaseEntity, PAGE_DTO extends Ba
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除实体
|
||||
* 有关联查询
|
||||
*/
|
||||
@Deprecated
|
||||
@Transactional
|
||||
public Integer[] delete(String... ids) {
|
||||
return new Integer[this.delete(Arrays.stream(ids).collect(Collectors.toSet()))];
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询实体
|
||||
* 有关联查询
|
||||
|
|
@ -530,16 +520,4 @@ public abstract class BaseService<ENTITY extends BaseEntity, PAGE_DTO extends Ba
|
|||
return this.findById(entity.getId());
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据单个 ID 删除实体。
|
||||
*
|
||||
* @param id 要删除的实体 ID
|
||||
* @return 被删除的实体数量(通常为 1)
|
||||
*/
|
||||
@Deprecated
|
||||
@Transactional
|
||||
public Integer delete(String id) {
|
||||
return delete(Set.of(id));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue