|
@@ -120,12 +120,7 @@ public class TbUserInfrService {
|
|
public List<TbUserInfrDto> deleteByIds(List<String> ids) {
|
|
public List<TbUserInfrDto> deleteByIds(List<String> ids) {
|
|
List<TbUserInfrDto> result = new ArrayList<>();
|
|
List<TbUserInfrDto> result = new ArrayList<>();
|
|
for (String id : ids) {
|
|
for (String id : ids) {
|
|
- deleteById(id);
|
|
|
|
-// Optional<TbUserInfr> obj = this.repo.findById(id);
|
|
|
|
-// if (obj.isPresent()) {
|
|
|
|
-// this.repo.deleteById(id);
|
|
|
|
-// result.add(obj.get().toDto());
|
|
|
|
-// }
|
|
|
|
|
|
+ result.add(deleteById(id));
|
|
}
|
|
}
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|