فهرست منبع

部件:怎加级联关系

lvxianyun 3 سال پیش
والد
کامیت
a6dd81833f
1فایلهای تغییر یافته به همراه11 افزوده شده و 4 حذف شده
  1. 11 4
      src/main/java/com/persagy/proxy/adm/model/AdmComponent.java

+ 11 - 4
src/main/java/com/persagy/proxy/adm/model/AdmComponent.java

@@ -1,5 +1,6 @@
 package com.persagy.proxy.adm.model;
 
+import com.persagy.proxy.adm.annotations.CascadeColumn;
 import lombok.Data;
 
 import java.util.Date;
@@ -94,26 +95,32 @@ public class AdmComponent {
         private Map<String, Object> infos;
         /** 统计信息 */
         private Map<String, Object> statistics;
-        /** 资产信息实体类 */
+
+        /** 资产信息实体类   资产对应部件设施关系 资产→部件设施*/
+        @CascadeColumn(graphCode = "Property2Mech", relCode = "Pe2Eq", selectToObj = false)
         private AdmProperty property;
         /** 建筑信息实体类 */
+        @CascadeColumn(graphCode = "MechForArch", relCode = "Eq2Bd")
         private AdmBuilding building;
         /** 楼层信息实体类 */
+        @CascadeColumn(graphCode = "MechForArch", relCode = "Eq2Fl")
         private AdmFloor floor;
         /** 项目信息实体类 */
+        @CascadeColumn(graphCode = "MechSubset", relCode = "Pj2Eq", selectToObj = false)
         private AdmProject project;
-
         /**BIM模型中坐标json,坐标x,y,z */
         private AdmBIMLocation locationJson;
         /** 级联-部件服务所在的空 */
+        @CascadeColumn(graphCode = "MechForArch", relCode = "Eq2Sp")
         private List<AdmSpace> zoneSpaceForBase;
         /** 级联-部件服务所在的空 */
+        @CascadeColumn(graphCode = "MechInArch", relCode = "Eq2Sp")
         private List<AdmSpace> zoneSpaceInBase;
         /** 级联-部件所在的竖井 */
+        @CascadeColumn(graphCode = "MechInArch", relCode = "Eq2Sh")
         private List<AdmShaft> shaftList;
         /** 资产列表 */
+        @CascadeColumn(graphCode = "Property2Mech", relCode = "Pe2Eq", selectToObj = false)
         private List<AdmProperty> propertyList;
-        /** 级联-部件 */
-        private List<AdmEquipment> component;
         
 }