|
|
@@ -27,7 +27,7 @@ public interface CrowdTestTaskDao extends CrudRepository<CrowdTestTaskPO, Long>
|
|
|
|
|
|
List<CrowdTestTaskPO> findAllByIsDeleted(int isDeleted);
|
|
|
|
|
|
- @Query(value = "SELECT new com.mooctest.crowd.domain.model.RankInfo(SUM(p.quotedPrice), p.evaluationAgencyId) FROM CrowdTestTaskPO p GROUP BY p.evaluationAgencyId ORDER BY SUM(p.quotedPrice) DESC")
|
|
|
+ @Query(value = "SELECT new com.mooctest.crowd.domain.model.RankInfo(SUM(p.quotedPrice), p.evaluationAgencyId) FROM CrowdTestTaskPO p where p.evaluationAgencyId is not null GROUP BY p.evaluationAgencyId ORDER BY SUM(p.quotedPrice) DESC")
|
|
|
List<RankInfo> findTotalPriceOfAgency(Pageable pageable);
|
|
|
|
|
|
@Query(nativeQuery = true, value = "select * from crowd_test_task where CTT_STATUS = 1 order by CTT_QUOTED_PRICE DESC LIMIT 4")
|