| | |
| | | videoInfoVo.setCollectCnt(data.getCollectCnt()); |
| | | videoInfoVo.setStarCnt(data.getStarCnt()); |
| | | |
| | | if (loginUser != null) { |
| | | VideoCommentLikeEntity commentLike = this.videoCommentLikeMapper.selectCommentLikeByMemberIdAndRelateId(loginUser.getId(), videoInfoEntity.getId()); |
| | | if (commentLike != null) { |
| | | videoInfoVo.setIsLike(1); |
| | | } else { |
| | | videoInfoVo.setIsLike(2); |
| | | } |
| | | |
| | | VideoCollectionEntity collection = this.videoCollectionMapper.selectVideoCollectionByVideoIdAndMemberId(videoInfoEntity.getId(), loginUser.getId()); |
| | | if (collection != null) { |
| | | videoInfoVo.setIsCollect(1); |
| | | } else { |
| | | videoInfoVo.setIsCollect(2); |
| | | } |
| | | } |
| | | |
| | | if (AppContants.FLAG_INT_N.equals(videoInfoEntity.getIsFree())) { |
| | | if (loginUser == null) { |
| | | videoInfoVo.setNotLogin(AppContants.FLAG_INT_N); |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | VideoMasterItemsEntity currentItem = this.videoMasterItemsMapper.selectItemByVideoIdAndItemId(videoId, itemId); |
| | | if (currentItem == null) { |
| | | throw new FebsException("视频不存在"); |
| | | } |
| | | |
| | | VideoCommentLikeEntity commentLike = this.videoCommentLikeMapper.selectCommentLikeByMemberIdAndRelateId(loginUser.getId(), videoInfoEntity.getId()); |
| | | if (commentLike != null) { |
| | | videoInfoVo.setIsLike(1); |
| | | } else { |
| | | videoInfoVo.setIsLike(2); |
| | | } |
| | | |
| | | VideoCollectionEntity collection = this.videoCollectionMapper.selectVideoCollectionByVideoIdAndMemberId(videoInfoEntity.getId(), loginUser.getId()); |
| | | if (collection != null) { |
| | | videoInfoVo.setIsCollect(1); |
| | | } else { |
| | | videoInfoVo.setIsCollect(2); |
| | | } |
| | | |
| | | videoInfoVo.setNotLogin(AppContants.FLAG_INT_Y); |