|
@@ -2,6 +2,8 @@ package com.fdkankan.scene.service.impl;
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
+import cn.hutool.core.date.DateUtil;
|
|
|
+import cn.hutool.core.date.TimeInterval;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.core.util.ZipUtil;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
@@ -401,6 +403,10 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
* @return com.fdkankan.scene.vo.SceneInfoVO
|
|
|
**/
|
|
|
private SceneInfoVO getSceneInfo4Edit(String num) throws Exception{
|
|
|
+
|
|
|
+ TimeInterval timer = DateUtil.timer();
|
|
|
+
|
|
|
+ timer.start("1");
|
|
|
ScenePlus scenePlus = scenePlusService.getScenePlusByNum(num);
|
|
|
if(Objects.isNull(scenePlus)){
|
|
|
throw new BusinessException(ErrorCode.FAILURE_CODE_5005);
|
|
@@ -426,6 +432,8 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
sceneInfoVO.setNum(num);
|
|
|
sceneInfoVO.setCreateTime(scenePlus.getCreateTime());
|
|
|
|
|
|
+ timer.start("2");
|
|
|
+
|
|
|
sceneInfoVO.setSceneResolution(scenePlusExt.getSceneResolution());
|
|
|
sceneInfoVO.setSceneFrom(scenePlusExt.getSceneFrom());
|
|
|
sceneInfoVO.setSceneKind(scenePlusExt.getSceneKind());
|
|
@@ -434,8 +442,13 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
|
|
|
this.SortBoxVideos(sceneInfoVO);
|
|
|
|
|
|
+ timer.start("3");
|
|
|
this.setExtData(sceneInfoVO, scenePlus.getCameraId());
|
|
|
|
|
|
+ log.info("1组耗时:{}",timer.interval("1"));
|
|
|
+ log.info("2组耗时:{}",timer.interval("2"));
|
|
|
+ log.info("3组耗时:{}",timer.interval("3"));
|
|
|
+
|
|
|
return sceneInfoVO;
|
|
|
}
|
|
|
|