|
|
@@ -7,10 +7,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.fdkankan.fusion.common.FilePath;
|
|
|
import com.fdkankan.fusion.common.ResultCode;
|
|
|
-import com.fdkankan.fusion.common.util.CameraUtil;
|
|
|
-import com.fdkankan.fusion.common.util.FileWriterUtil;
|
|
|
-import com.fdkankan.fusion.common.util.RedisKeyUtil;
|
|
|
-import com.fdkankan.fusion.common.util.ShellUtil;
|
|
|
+import com.fdkankan.fusion.common.util.*;
|
|
|
import com.fdkankan.fusion.entity.*;
|
|
|
import com.fdkankan.fusion.exception.BusinessException;
|
|
|
import com.fdkankan.fusion.common.PageInfo;
|
|
|
@@ -168,6 +165,19 @@ public class SceneService implements ISceneService {
|
|
|
|
|
|
@Override
|
|
|
public Object sceneDetail(LaserSceneParam param) {
|
|
|
+ ScenePlus scenePlus = scenePlusService.getById(param.getId());
|
|
|
+ if(scenePlus == null){
|
|
|
+ throw new BusinessException(ResultCode.SCENE_NOT_EXIST);
|
|
|
+ }
|
|
|
+ if(scenePlus.getSceneStatus() !=-2){
|
|
|
+ throw new BusinessException(ResultCode.SCENE_BUILDING);
|
|
|
+ }
|
|
|
+ if(!NumTypeUtils.isLaserBySceneSource(scenePlus.getSceneSource())){
|
|
|
+ throw new BusinessException(ResultCode.SCENE_TYPE_ERROR);
|
|
|
+ }
|
|
|
+ JSONObject object = fdService.sceneInfo(scenePlus.getNum());
|
|
|
+ Integer id = object.getInteger("id");
|
|
|
+ param.setId(id);
|
|
|
return fdService.sceneDetail(param);
|
|
|
}
|
|
|
|