Сданная лаб3
This commit is contained in:
parent
c547136cbf
commit
82903666e5
BIN
data.mv.db
BIN
data.mv.db
Binary file not shown.
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -102,7 +102,6 @@ public class EntrysDataService {
|
||||
|
||||
@Transactional
|
||||
public List<EntrysDataGrouped> getCount() {
|
||||
List<EntrysDataGrouped> list = repository.getCountEntrysInDepartment();
|
||||
return list;
|
||||
return repository.getCountEntrysInDepartment();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user