Commit 853b7369 authored by liqin's avatar liqin 💬

bug fixed

parent ca92d58f
......@@ -32,9 +32,6 @@ import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.data.redis.core.ValueOperations;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
......@@ -366,8 +363,12 @@ public class ChinaMobileRestApiController extends BaseController {
exhibitionBoard.setExhibitionBoardCatName(name);
}
if (exhibitionBoard.getVideoContentId() != null) {
String thumbnail = this.videoContentService.getById(exhibitionBoard.getVideoContentId()).getThumbnail();
exhibitionBoard.setBoardVideoContentThumbnail(thumbnail);
final VideoContent videoContent = this.videoContentService.getById(exhibitionBoard.getVideoContentId());
if (videoContent == null) {
exhibitionBoard.setBoardVideoContentThumbnail(videoContent.getThumbnail());
} else {
exhibitionBoard.setBoardVideoContentThumbnail(videoContent.getThumbnail());
}
}
LambdaQueryWrapper<Asset> assetQueryWrapper = Wrappers.<Asset>lambdaQuery().eq(Asset::getRefItemId, exhibitionBoard.getVideoContentId());
assetQueryWrapper.eq(Asset::getFileCat, FileCatEnum.VIDEO_CONTENT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment