|
@@ -90,7 +90,7 @@ public class ContentPlatformVideoJob {
|
|
|
if (Objects.nonNull(detail)) {
|
|
|
String cover = detail.getCover().substring(0, detail.getCover().indexOf("/watermark"));
|
|
|
item.setCover(cover);
|
|
|
- if (detail.getAuditStatus() != 5 || detail.getRecommendStatus() != -6) {
|
|
|
+ if (detail.getAuditStatus() != 5) {
|
|
|
item.setStatus(0);
|
|
|
}
|
|
|
}
|
|
@@ -126,7 +126,7 @@ public class ContentPlatformVideoJob {
|
|
|
}
|
|
|
String cover = detail.getCover().substring(0, detail.getCover().indexOf("/watermark"));
|
|
|
item.setCover(cover);
|
|
|
- if (detail.getAuditStatus() != 5 || detail.getRecommendStatus() != -6) {
|
|
|
+ if (detail.getAuditStatus() != 5) {
|
|
|
item.setStatus(0);
|
|
|
}
|
|
|
videoMapper.updateByPrimaryKeySelective(item);
|
|
@@ -188,10 +188,12 @@ public class ContentPlatformVideoJob {
|
|
|
for (ContentPlatformVideoAgg video : partition) {
|
|
|
VideoDetail videoDetail = videoDetailMap.get(video.getVideoId());
|
|
|
if (videoDetail == null
|
|
|
- || videoDetail.getAuditStatus() != 5
|
|
|
- || videoDetail.getRecommendStatus() != -6) {
|
|
|
- planMapperExt.updateVideoStatus(video.getVideoId(), now);
|
|
|
- planMapperExt.updateVideoAggStatus(video.getVideoId(), now);
|
|
|
+ || videoDetail.getAuditStatus() != 5) {
|
|
|
+ planMapperExt.updateVideoStatus(video.getVideoId(), 0, now);
|
|
|
+ planMapperExt.updateVideoAggStatus(video.getVideoId(), 0, now);
|
|
|
+ } else if (videoDetail.getRecommendStatus() == -6) {
|
|
|
+ planMapperExt.updateVideoStatus(video.getVideoId(), 1, now);
|
|
|
+ planMapperExt.updateVideoAggStatus(video.getVideoId(), 1, now);
|
|
|
}
|
|
|
}
|
|
|
}
|