Сданная лаб3

This commit is contained in:
DyCTaTOR 2024-04-23 14:19:37 +04:00
parent c547136cbf
commit 82903666e5
3 changed files with 2 additions and 6 deletions

Binary file not shown.

View File

@ -88,9 +88,6 @@ public class EntrysDataController {
@GetMapping("/count")
public List<EntrysDataGroupedDto> getCount() {
var val1 = entrysDataService.getCount().stream();
var val2 = val1.map(this::toGroupedDto).toList();
List<EntrysDataGroupedDto> list = val2;
return list;
return entrysDataService.getCount().stream().map(this::toGroupedDto).toList();
}
}

View File

@ -102,7 +102,6 @@ public class EntrysDataService {
@Transactional
public List<EntrysDataGrouped> getCount() {
List<EntrysDataGrouped> list = repository.getCountEntrysInDepartment();
return list;
return repository.getCountEntrysInDepartment();
}
}