|
@@ -12,6 +12,7 @@ import com.fjhx.mapper.video.VideoInfoMapper;
|
|
|
import com.fjhx.params.video.VideoInfoVo;
|
|
|
import com.fjhx.service.video.VideoClassifyService;
|
|
|
import com.fjhx.service.video.VideoInfoService;
|
|
|
+import com.fjhx.utils.Assert;
|
|
|
import com.fjhx.utils.FileClientUtil;
|
|
|
import com.fjhx.utils.WrapperUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -104,6 +105,9 @@ public class VideoInfoServiceImpl extends ServiceImpl<VideoInfoMapper, VideoInfo
|
|
|
// TODO 类型未定,目前先赋值已发布
|
|
|
videoInfoVo.setStatus(2);
|
|
|
|
|
|
+ // 播放量
|
|
|
+ videoInfoVo.setPlaybackVolume(0L);
|
|
|
+
|
|
|
// 变更分类视频数量
|
|
|
updateClassifyVideoNum(null, videoInfoVo.getVideoClassifyId(), videoInfoVo.getVideoNum());
|
|
|
|
|
@@ -145,6 +149,19 @@ public class VideoInfoServiceImpl extends ServiceImpl<VideoInfoMapper, VideoInfo
|
|
|
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Map<String, Object> details(VideoInfoVo videoInfoVo) {
|
|
|
+ Long id = videoInfoVo.getId();
|
|
|
+ Assert.notEmpty(id, "id不能为空");
|
|
|
+
|
|
|
+ Map<String, Object> map = getMap(Wrappers.<VideoInfo>lambdaQuery().eq(BaseEntity::getId, id));
|
|
|
+ List<FileInfo> fileInfoList = FileClientUtil.getFileInfoList(id);
|
|
|
+
|
|
|
+ map.put("fileInfo", fileInfoList);
|
|
|
+
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 保存视频信息
|
|
|
*/
|