21-rating #22

Merged
romanov73 merged 33 commits from 21-rating into aspir 2025-04-15 23:18:30 +04:00
Showing only changes of commit c62774aebb - Show all commits

View File

@ -10,7 +10,6 @@ import java.util.List;
public interface ReportRepository extends JpaRepository<Report, Integer> {
//
@Query("SELECT new ru.ulstu.statistic.model.RatingItem(r.aspirant, (SELECT cast(sum(rv.indicatorValue) AS Integer) FROM ReportValue rv WHERE rv MEMBER OF r.values)) FROM Report r JOIN r.reportPeriod rp WHERE rp.id = :reportPeriodId")
List<RatingItem> getRating(@Param("reportPeriodId") Integer reportPeriodId);
}