|
@@ -455,12 +455,26 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
if (count == 0) {
|
|
|
return result;
|
|
|
}
|
|
|
- List<ContentPlatformVideo> videoList = planMapperExt.getVideoList(param, dt, videoMinScore, offset, param.getPageSize());
|
|
|
+ String sort = getVideoContentListSort(param.getSort());
|
|
|
+ List<ContentPlatformVideo> videoList = planMapperExt.getVideoList(param, dt, videoMinScore, offset, param.getPageSize(), sort);
|
|
|
List<VideoContentItemVO> list = buildVideoContentItemVOList(videoList);
|
|
|
result.setObjs(list);
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ private String getVideoContentListSort(Integer sort) {
|
|
|
+ switch (sort) {
|
|
|
+ case 1:
|
|
|
+ return "score desc";
|
|
|
+ case 2:
|
|
|
+ return "score desc";
|
|
|
+ case 3:
|
|
|
+ return "score desc";
|
|
|
+ default:
|
|
|
+ return "score desc";
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private List<VideoContentItemVO> buildVideoContentItemVOList(List<ContentPlatformVideo> videoList) {
|
|
|
if (CollectionUtils.isEmpty(videoList)) {
|
|
|
return null;
|