package com.fdkankan.fusion.response; import com.baomidou.mybatisplus.annotation.TableField; import com.fdkankan.fusion.common.FilePath; import com.fdkankan.fusion.common.util.NumTypeUtils; import com.fdkankan.fusion.config.CacheUtil; import com.fdkankan.fusion.entity.Model; import lombok.Data; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Configuration; @Data public class SceneVo extends Model { private Long id; private Integer buildObjStatus; private String createTime; private String name; private String num; private Integer payStatus; private String sceneName; private String snCode; private Integer status; private String thumb; private String title; private String laserTitle; private Integer viewCount; private Boolean isLaser; private Integer type; // 0 四维看看,1看见场景,2 深时场景,3 三维模型 private String phone; private Boolean bind = true; private String deptId; private String deptName; private Integer location; private Integer isObj; private Integer cameraType; private Boolean inFusion = false; /** * 模型方向(只有激光场景才有) */ private String orientation; /** * laser推送经纬度信息 */ private String rtkLocation; private String cutModelPath; private String surveillancePath; private String sceneJsonPath; private String sourceName; private String webSite; private Integer sceneSource; private Integer isAuth; public String getCutModelPath() { if(StringUtils.isNotBlank(num) ){ return CacheUtil.queryPath+String.format(FilePath.OBJ_OSS_PATH,num)+"/user/cutModel.json"; } return cutModelPath; } public String getSurveillancePath() { if(StringUtils.isNotBlank(num)){ return CacheUtil.queryPath+String.format(FilePath.OBJ_OSS_PATH,num)+"/user/surveillance.json"; } return surveillancePath; } public String getSceneJsonPath() { if(StringUtils.isNotBlank(num)){ return CacheUtil.queryPath+String.format(FilePath.OBJ_OSS_PATH,num)+"/data/scene.json"; } return sceneJsonPath; } public String getWebSite() { if(StringUtils.isNotBlank(num) && type != null) { if(NumTypeUtils.isLaser(type)){ return CacheUtil.website + "/swss/uat/index.html?m="+num; }else { return CacheUtil.website + "/swkk/spg.html?m="+num; } } return webSite; } }