AdmSpace.java 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. package com.persagy.proxy.object.model;
  2. import com.fasterxml.jackson.annotation.JsonProperty;
  3. import com.fasterxml.jackson.databind.node.ArrayNode;
  4. import com.persagy.proxy.adm.annotations.CascadeColumn;
  5. import com.persagy.proxy.adm.model.AdmBaseEntity;
  6. import lombok.Data;
  7. import lombok.EqualsAndHashCode;
  8. import java.util.List;
  9. import java.util.Set;
  10. /**
  11. * ADM 空间 实体
  12. * @author lvxy
  13. * @date 2021/8/17
  14. */
  15. @Data
  16. @EqualsAndHashCode(callSuper = true)
  17. public class AdmSpace extends AdmBaseEntity<AdmSpace> {
  18. public static final String OBJ_TYPE = "space";
  19. /** 名称 */
  20. private String name;
  21. /** 本地编码 */
  22. private String localId;
  23. /** 本地名称 */
  24. private String localName;
  25. /** 项目ID */
  26. private String projectId;
  27. /** 建筑ID */
  28. private String buildingId;
  29. /** 楼层ID */
  30. private String floorId;
  31. /** 平台二维码 */
  32. private String defaultQRCode;
  33. /** BIM模型中编码 */
  34. private String bimId;
  35. /** 楼层选定区域轮廓线 */
  36. private ArrayNode outline;
  37. /** 轮廓线2 未使用*/
  38. private ArrayNode outline2;
  39. /** 图片 - 信息点里已存在的信息点不应在实体中重复定义为其他格式 */
  40. private ArrayNode pic;
  41. /** 空间是否受影响 */
  42. private Integer state;
  43. /** 空间常驻人数 */
  44. private Integer permanentPeopleNum;
  45. /** 井深 */
  46. private Float depth;
  47. /** 面宽 */
  48. private Float width;
  49. /** 建筑面积 */
  50. private Float buildArea;
  51. /** 使用面积 */
  52. private Float netArea;
  53. /** 高 */
  54. private Float height;
  55. /** 备注文字 */
  56. private String intro;
  57. /** 设计供冷功率 */
  58. private Float ratedCoolingp;
  59. /** 设计供热功率 */
  60. private Float ratedHeatingp;
  61. /** 空调形式 */
  62. private String acType;
  63. /** 空间朝向 */
  64. private String zoneOrientation;
  65. /** 空间功能区类型 */
  66. private String roomFuncType;
  67. /** 空间序号 */
  68. private Float roomSerial;
  69. /** 项目空间功能区类型 */
  70. private String projRoomFuncType;
  71. /** 设计照明功率 */
  72. private Float ratedLightp;
  73. /** 内外区分类 */
  74. private String zoneType;
  75. /** 租赁业态类型 */
  76. private Integer tenantType;
  77. /** 所属租户 */
  78. private String tenant;
  79. /** 配电容量 */
  80. private Float elecCap;
  81. /** 污染等级 */
  82. private String pollutionDegree;
  83. /** 对象类型code */
  84. private String classCode;
  85. /** 二维码图片 */
  86. private ArrayNode qrcodePic;
  87. /** BIM模型中坐标 */
  88. private String bimLocation;
  89. /** 二维码图片 */
  90. @JsonProperty("ai")
  91. private Boolean isAi = false;
  92. /** 垂直交通关系空间id */
  93. private Set<String> spaceIdList;
  94. /** 更新的时候使用此字段保存楼层和建筑id */
  95. private String flowBuild;
  96. /** 信息点 */
  97. //private Map<String, Object> infos;
  98. /** 级联-设备 */
  99. @CascadeColumn(graphCode = "MechInArch", relCode = "Eq2Sp", selectToObj = false)
  100. private List<AdmEquipment> equipment;
  101. /** 级联-元空间 使用中台的信息点,查询需要单独处理*/
  102. @CascadeColumn(graphCode = "MechInArch", relCode = "Sp2Si")
  103. private List<AdmISpace> zoneIspace;
  104. /** 级联-系统 */
  105. @CascadeColumn(graphCode = "MechInArch", relCode = "Sy2Sp", selectToObj = false)
  106. private List<AdmSystem> generalSystem;
  107. /** 级联-服务于空间的设备 */
  108. @CascadeColumn(graphCode = "MechForArch", relCode = "Eq2Sp", selectToObj = false)
  109. private List<AdmEquipment> equipmentFor;
  110. /** 建筑信息实体类 */
  111. @CascadeColumn(graphCode = "ArchSubset", relCode = "Bd2Sp", selectToObj = false)
  112. private AdmBuilding building;
  113. /** 楼层信息实体类 */
  114. @CascadeColumn(graphCode = "ArchSubset", relCode = "Fl2Sp", selectToObj = false)
  115. private AdmFloor floor;
  116. /** 级联-建筑 */
  117. @CascadeColumn(graphCode = "ArchSubset", relCode = "Bd2Sp", selectToObj = false)
  118. private List<AdmBuilding> buildingList;
  119. /** 级联-楼层 */
  120. @CascadeColumn(graphCode = "ArchSubset", relCode = "Fl2Sp", selectToObj = false)
  121. private List<AdmFloor> floorList;
  122. /** 资产列表 */
  123. @CascadeColumn
  124. private List<AdmProperty> propertyList;
  125. /** 空间轮廓线 未使用 */
  126. //private T spaceOutline;
  127. /** 对象类型 */
  128. private String objectType = OBJ_TYPE;
  129. }