#21 -- Fix jpql
This commit is contained in:
parent
6770d1645c
commit
c62774aebb
@ -10,7 +10,6 @@ import java.util.List;
|
|||||||
|
|
||||||
public interface ReportRepository extends JpaRepository<Report, Integer> {
|
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")
|
@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);
|
List<RatingItem> getRating(@Param("reportPeriodId") Integer reportPeriodId);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user