瀏覽代碼

视频状态更新

wangyunpeng 2 月之前
父節點
當前提交
378835021a
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      api-module/src/main/java/com/tzld/piaoquan/api/job/ContentPlatformVideoJob.java

+ 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);
                 }