#21 -- Fix new report indicators

This commit is contained in:
Anton Romanov 2025-04-15 23:51:58 +04:00
parent 97fff815df
commit 56fea5eeb3
2 changed files with 6 additions and 1 deletions

View File

@ -42,6 +42,11 @@ public class ReportService {
Report report;
if (reportDto.getId() == null || reportDto.getId() == 0) {
report = new Report();
report.setValues(aspirantService.getCurrentAspirantIndicators().stream().map(i -> {
ReportValue rv = new ReportValue();
rv.setIndicator(i);
return rv;
}).toList());
} else {
report = getReportById(reportDto.getId());
}

View File

@ -65,7 +65,7 @@
</div>
</div>
<div class="row" sec:authorize="hasAnyRole('ROLE_ADMIN', 'ROLE_MANAGER', ROLE_HEAD)">
<div class="row" sec:authorize="hasAnyRole('ROLE_ADMIN', 'ROLE_MANAGER', 'ROLE_HEAD')">
<div class="col col-md-6">
<div class="form-group">
<label for="val" class="form-label">Получаемый балл</label>