|
@@ -1,7 +1,6 @@
|
|
|
package com.fdkankan.fusion.common.util;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.fdkankan.fusion.entity.Scene;
|
|
|
import com.fdkankan.fusion.service.ISceneService;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -16,20 +15,6 @@ public class CaseNumTypeUtil {
|
|
|
ISceneService sceneService;
|
|
|
|
|
|
//0 四维看看,1看见场景,2 深时场景,3 三维模型,4深时obj ,5深光点云,6深光obj,7第三方相机
|
|
|
- public Integer getCaseNumType(String num,Integer numType){
|
|
|
- if(StringUtils.isBlank(num)){
|
|
|
- return null;
|
|
|
- }
|
|
|
- LambdaQueryWrapper<Scene> wrapper = new LambdaQueryWrapper<>();
|
|
|
- wrapper.eq(Scene::getSceneCode,num);
|
|
|
- Scene one = sceneService.getOne(wrapper);
|
|
|
- if(one == null){
|
|
|
- return null;
|
|
|
- }
|
|
|
- return SceneTypeUtil.getTypeBySceneSource(one.getSceneSource(),numType);
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
public static Integer getType(Integer numType){
|
|
|
if(numType == 2 || numType == 5){
|
|
|
return 0;
|