SceneVo.java 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. package com.fdkankan.fusion.response;
  2. import com.baomidou.mybatisplus.annotation.TableField;
  3. import com.fdkankan.fusion.common.FilePath;
  4. import com.fdkankan.fusion.common.util.NumTypeUtils;
  5. import com.fdkankan.fusion.config.CacheUtil;
  6. import com.fdkankan.fusion.entity.Model;
  7. import lombok.Data;
  8. import org.apache.commons.lang3.StringUtils;
  9. import org.springframework.beans.factory.annotation.Value;
  10. import org.springframework.context.annotation.Configuration;
  11. @Data
  12. public class SceneVo extends Model {
  13. private Long id;
  14. private Integer buildObjStatus;
  15. private String createTime;
  16. private String name;
  17. private String num;
  18. private Integer payStatus;
  19. private String sceneName;
  20. private String snCode;
  21. private Integer status;
  22. private String thumb;
  23. private String title;
  24. private String laserTitle;
  25. private Integer viewCount;
  26. private Boolean isLaser;
  27. private Integer type; // 0 四维看看,1看见场景,2 深时场景,3 三维模型
  28. private String phone;
  29. private Boolean bind = true;
  30. private String deptId;
  31. private String deptName;
  32. private Integer location;
  33. private Integer isObj;
  34. private Integer cameraType;
  35. private Boolean inFusion = false;
  36. /**
  37. * 模型方向(只有激光场景才有)
  38. */
  39. private String orientation;
  40. /**
  41. * laser推送经纬度信息
  42. */
  43. private String rtkLocation;
  44. private String cutModelPath;
  45. private String surveillancePath;
  46. private String sceneJsonPath;
  47. private String sourceName;
  48. private String webSite;
  49. private Integer sceneSource;
  50. private Integer isAuth;
  51. public String getCutModelPath() {
  52. if(StringUtils.isNotBlank(num) ){
  53. return CacheUtil.queryPath+String.format(FilePath.OBJ_OSS_PATH,num)+"/user/cutModel.json";
  54. }
  55. return cutModelPath;
  56. }
  57. public String getSurveillancePath() {
  58. if(StringUtils.isNotBlank(num)){
  59. return CacheUtil.queryPath+String.format(FilePath.OBJ_OSS_PATH,num)+"/user/surveillance.json";
  60. }
  61. return surveillancePath;
  62. }
  63. public String getSceneJsonPath() {
  64. if(StringUtils.isNotBlank(num)){
  65. return CacheUtil.queryPath+String.format(FilePath.OBJ_OSS_PATH,num)+"/data/scene.json";
  66. }
  67. return sceneJsonPath;
  68. }
  69. public String getWebSite() {
  70. if(StringUtils.isNotBlank(num) && type != null) {
  71. if(NumTypeUtils.isLaser(type)){
  72. return CacheUtil.website + "/swss/uat/index.html?m="+num;
  73. }else {
  74. return CacheUtil.website + "/swkk/spg.html?m="+num;
  75. }
  76. }
  77. return webSite;
  78. }
  79. }