|
@@ -12,7 +12,7 @@ import java.util.List;
|
|
*/
|
|
*/
|
|
@Repository
|
|
@Repository
|
|
public interface VideoDemandAnalysisRepository extends JpaRepository<VideoDemandAnalysis, Long> {
|
|
public interface VideoDemandAnalysisRepository extends JpaRepository<VideoDemandAnalysis, Long> {
|
|
- @Query("SELECT DISTINCT v.videoId FROM VideoDemandAnalysis v join video_demand_score s on v.videoId = s.videoId " +
|
|
|
|
|
|
+ @Query("SELECT DISTINCT v.videoId FROM VideoDemandAnalysis v join VideoDemandScore s on v.videoId = s.videoId " +
|
|
"where v.demandCategory in ('文字问答类') and s.demandScore>=8 order by v.id desc")
|
|
"where v.demandCategory in ('文字问答类') and s.demandScore>=8 order by v.id desc")
|
|
List<Long> findDistinctVideoId(Pageable pageable);
|
|
List<Long> findDistinctVideoId(Pageable pageable);
|
|
}
|
|
}
|