Сданная лаб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")
|
@GetMapping("/count")
|
||||||
public List<EntrysDataGroupedDto> getCount() {
|
public List<EntrysDataGroupedDto> getCount() {
|
||||||
var val1 = entrysDataService.getCount().stream();
|
return entrysDataService.getCount().stream().map(this::toGroupedDto).toList();
|
||||||
var val2 = val1.map(this::toGroupedDto).toList();
|
|
||||||
List<EntrysDataGroupedDto> list = val2;
|
|
||||||
return list;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,6 @@ public class EntrysDataService {
|
|||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
public List<EntrysDataGrouped> getCount() {
|
public List<EntrysDataGrouped> getCount() {
|
||||||
List<EntrysDataGrouped> list = repository.getCountEntrysInDepartment();
|
return repository.getCountEntrysInDepartment();
|
||||||
return list;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user