Browse Source

视频状态更新

wangyunpeng 3 weeks ago
parent
commit
378835021a

+ 3 - 4
api-module/src/main/java/com/tzld/piaoquan/api/job/ContentPlatformVideoJob.java

@@ -187,10 +187,9 @@ public class ContentPlatformVideoJob {
             Map<Long, VideoDetail> videoDetailMap = messageAttachmentService.getVideoDetail(new HashSet<>(videoIds));
             for (ContentPlatformVideoAgg video : partition) {
                 VideoDetail videoDetail = videoDetailMap.get(video.getVideoId());
-                if (videoDetail == null) {
-                    continue;
-                }
-                if (videoDetail.getAuditStatus() != 5 || videoDetail.getRecommendStatus() != -6) {
+                if (videoDetail == null
+                        || videoDetail.getAuditStatus() != 5
+                        || videoDetail.getRecommendStatus() != -6) {
                     planMapperExt.updateVideoStatus(video.getVideoId(), now);
                     planMapperExt.updateVideoAggStatus(video.getVideoId(), now);
                 }