Browse Source

新增ADM关系与BDTP关系的映射枚举类

lijie 3 years ago
parent
commit
c72d626ed4

+ 48 - 0
src/main/java/com/persagy/proxy/adm/controller/AdmManualRelationCalcController.java

@@ -0,0 +1,48 @@
+package com.persagy.proxy.adm.controller;
+
+import com.persagy.proxy.adm.constant.AdmCommonConstant;
+import com.persagy.proxy.adm.model.AdmRelationAddRequest;
+import com.persagy.proxy.adm.model.AdmTenant;
+import com.persagy.proxy.adm.request.AdmCreateResponse;
+import com.persagy.proxy.adm.request.AdmQueryCriteria;
+import com.persagy.proxy.adm.request.AdmResponse;
+import com.persagy.proxy.adm.service.AdmManualRelationCalcService;
+import com.persagy.proxy.common.entity.InstanceUrlParam;
+import lombok.RequiredArgsConstructor;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.ws.rs.QueryParam;
+
+/***
+ * Description:手动计算输入类
+ * @author : lijie
+ * @date :2021/8/31 11:37
+ * Update By lijie 2021/8/31 11:37
+ */
+@RestController
+@RequestMapping("/rel-manual-calc/")
+@RequiredArgsConstructor
+public class AdmManualRelationCalcController {
+
+    private final AdmManualRelationCalcService admManualRelationCalcService;
+    
+    /***
+     * Description: 添加关系
+     * @param request : 请求参数
+     * @return : com.persagy.proxy.adm.request.AdmCreateResponse  
+     * @author : lijie
+     * @date :2021/8/31 12:10
+     * Update By lijie 2021/8/31 12:10
+     */
+    @PostMapping(value = "add")
+    public AdmCreateResponse addRels(@RequestBody AdmRelationAddRequest request) throws Exception {
+        return admManualRelationCalcService.addRels(request);
+    }
+
+
+
+
+}

+ 39 - 0
src/main/java/com/persagy/proxy/adm/model/AdmRelationAddRequest.java

@@ -0,0 +1,39 @@
+package com.persagy.proxy.adm.model;
+
+import com.alibaba.fastjson.annotation.JSONField;
+import com.fasterxml.jackson.annotation.JsonAlias;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+@Data
+@Builder
+@NoArgsConstructor
+@AllArgsConstructor
+public class AdmRelationAddRequest implements Serializable {
+    /**需要计算的类型*/
+    private String relType;
+
+    /**编码类型,CADID图纸编码(cadId),设备名称(name),设备ID(id),本地编码(localId),本地名称(localName)*/
+    private String type;
+
+    /**主对象内容*/
+    private String mainContent;
+
+    /**从对象内容*/
+    private List<String> fromContent;
+
+    /**图类型编码*/
+    @JsonAlias({"graphicType","graphic_type"})
+    @JsonProperty("graphicType")
+    @JSONField(name = "graphicType",alternateNames = {"parentCode","graphic_type"})
+    private String graphicType;
+
+
+}

+ 66 - 0
src/main/java/com/persagy/proxy/adm/request/AdmCreateResponse.java

@@ -0,0 +1,66 @@
+package com.persagy.proxy.adm.request;
+
+import com.alibaba.fastjson.JSONArray;
+import com.persagy.proxy.adm.utils.AdmEntityTransferUtil;
+import com.persagy.proxy.common.entity.DmpResult;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * ADM 通用创建返回结果
+ * @author Charlie Yu
+ * @date 2021-08-16
+ */
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+public class AdmCreateResponse {
+    private final static String SUCCESS = "success";
+    private final static String FAILURE = "failure";
+    /** 结果 */
+    private String result;
+    /** 消息 */
+    private String message;
+    /** 错误数据主从对象 1 主对象  2 从对象 */
+    private String errorType;
+    /** 查询到的数据列表 */
+    private List<?> entityList;
+
+    public static AdmCreateResponse success() {
+        return new AdmCreateResponse(SUCCESS, null, null, null);
+    }
+
+    public static AdmCreateResponse failure(String message) {
+        return new AdmCreateResponse(FAILURE, message, null, new ArrayList<>());
+    }
+
+    public static AdmCreateResponse failure(String message,String errorType) {
+        return new AdmCreateResponse(FAILURE, message, errorType, new ArrayList<>());
+    }
+
+    public static AdmCreateResponse success(List<?> content) {
+        return new AdmCreateResponse(SUCCESS, null, null, content);
+    }
+
+    /**
+     * 从数据中台结果转换
+     * @param admRequest
+     * @param dmpResult
+     * @param clazz
+     * @param <T>
+     * @return
+     */
+    public static <T> AdmCreateResponse fromDmp(AdmQueryCriteria admRequest, DmpResult<JSONArray> dmpResult, Class<T> clazz) {
+        if(!DmpResult.SUCCESS.equals(dmpResult.getResult())) {
+            return failure("调用中台查询接口出错:" + dmpResult.getMessage());
+        }
+        // 转换为结果
+        List<T> admVOs = AdmEntityTransferUtil.toAdmMultiEntity(dmpResult.getData(), admRequest.getProjection(), clazz);
+        Long total = dmpResult.getCount() == null ? null : dmpResult.getCount().longValue();
+        return new AdmCreateResponse(SUCCESS, null, null, admVOs);
+    }
+}

+ 21 - 0
src/main/java/com/persagy/proxy/adm/service/AdmManualRelationCalcService.java

@@ -0,0 +1,21 @@
+package com.persagy.proxy.adm.service;
+
+import com.persagy.proxy.adm.model.AdmRelationAddRequest;
+import com.persagy.proxy.adm.request.AdmCreateResponse;
+/***
+ * Description: 手动关系计算逻辑处理接口
+ * @author : lijie
+ * @date :2021/8/31 12:14
+ * Update By lijie 2021/8/31 12:14
+ */
+public interface AdmManualRelationCalcService {
+    /***
+     * Description: 添加关系
+     * @param request : 请求参数
+     * @return : com.persagy.proxy.adm.request.AdmCreateResponse  
+     * @author : lijie
+     * @date :2021/8/31 12:14
+     * Update By lijie 2021/8/31 12:14
+     */
+    AdmCreateResponse addRels(AdmRelationAddRequest request);
+}

+ 217 - 0
src/main/java/com/persagy/proxy/adm/service/impl/AdmManualRelationCalcServiceImpl.java

@@ -0,0 +1,217 @@
+package com.persagy.proxy.adm.service.impl;
+
+import cn.hutool.core.collection.CollUtil;
+import cn.hutool.core.util.StrUtil;
+import com.persagy.dmp.common.context.AppContext;
+import com.persagy.proxy.adm.model.AdmRelationAddRequest;
+import com.persagy.proxy.adm.request.AdmCreateResponse;
+import com.persagy.proxy.adm.service.AdmManualRelationCalcService;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Service;
+
+/***
+ * Description: 手动计算逻辑处理类
+ * @author : lijie
+ * @date :2021/8/31 11:51
+ * Update By lijie 2021/8/31 11:51
+ */
+@Service
+@Slf4j
+public class AdmManualRelationCalcServiceImpl implements AdmManualRelationCalcService {
+
+    /***
+     * Description: 添加关系
+     * @param request : 请求参数
+     * @return : com.persagy.proxy.adm.request.AdmCreateResponse
+     * @author : lijie
+     * @date :2021/8/31 12:14
+     * Update By lijie 2021/8/31 12:14
+     */
+    @Override
+    public AdmCreateResponse addRels(AdmRelationAddRequest request) {
+        // 获取项目id
+        String projectId = AppContext.getContext().getProjectId();
+        if (StrUtil.isBlank(request.getRelType())){
+            return AdmCreateResponse.failure("关系类型不能为空");
+        }
+        if (StrUtil.isBlank(request.getType())){
+            return AdmCreateResponse.failure("识别不能为空");
+        }
+        if (StrUtil.isBlank(request.getMainContent())){
+            return AdmCreateResponse.failure("主对象不能为空","1");
+        }
+        if (CollUtil.isEmpty(request.getFromContent())){
+            return AdmCreateResponse.failure("从对象不能为空","2");
+        }
+        // 1.根据项目id和关系类型更新计算时间为当前时间
+        // 2.根据不同关系类型进行处理
+        // 2.1 pe2sp,pe2sh,eq2sh_for,eq2fl_for,eq2bd_for,sy2sp_for,sy2sh_for,sy2fl_for,sy2bd_for
+        // sp2sp_ConvectionNetwork_1,sp2sp_ConvectionNetwork_2,sp2sp_ConvectionNetwork_3,sp2sp_SpaceNeighborhood_5
+        // sp2sp_SpaceNeighborhood_2,sp2sp_SpaceNeighborhood_4,sp2sp_TrafficNetwork_3,sp2sp_TrafficNetwork_2,
+        // sp2sp_RadiationNetwork_1,sp2sp_RadiationNetwork_2,sp2sp_SpaceNeighborhood_1,sp2sp_TrafficNetwork_1,
+        // sp2sp_SpaceNeighborhood_3,eq2sy_ControlRelation_2,eq2sy_ValveRelationship_vv2sy,
+        // eq2sy_SensorRelationship_ss2sy,eq2sp_SensorRelationship_ss2sp,eq2sp_x,bd2bd_ArchForArch,bd2fl_ArchForArch,
+        // bd2sh_ArchForArch,bd2sp_ArchForArch,fl2bd_ArchForArch,fl2fl_ArchForArch,fl2sh_ArchForArch,fl2sp_ArchForArch,
+        // sh2bd_ArchForArch,sh2fl_ArchForArch,sh2sh_ArchForArch,sh2sp_ArchForArch,sp2bd_ArchForArch,sp2fl_ArchForArch,
+        // sp2sh_ArchForArch,sp2sp_ArchForArch
+        // 以上type为cadId直接提示从对象不存在CADID编码并且errorType=2
+
+        // 2.2 特殊类型的判断
+        // *******
+        // sp2sp_RadiationNetwork_2,sp2sp_RadiationNetwork_1 && classCode!=LightingZone errorType=1,不是照明分区类型
+        // sp2sp_ConvectionNetwork_2,sp2sp_ConvectionNetwork_3,sp2sp_ConvectionNetwork_1 && classCode!=AirConditioningZone errorType=1,不是空调分区类型
+        // sp2sp_TrafficNetwork_3,sp2sp_TrafficNetwork_2,sp2sp_TrafficNetwork_1 && classCode!=GeneralZone errorType=1,不是物业分区类型
+        // relType为上面几种的规定从对象不能重复主对象和从对象不能重复
+        // *******
+        // eq2eq_EquipPower_1,eq2eq_EquipPower_2,eq2eq_EquipPower_3,eq2eq_EquipPower_4
+        // 主对象的class_code必须等于SETDLS,SETDHS,其他的报不符合主对象条件限制错误
+        // *******
+
+
+        // 2.3 根据对象信息点和对象内容(主/副)查询对象,然后添加关系及计算标记
+        // 1.obj_type,project_id,type(设备名称(name),设备ID(id),本地编码(localId),本地名称(localName))查询主对象
+        // 2.obj_type,project_id,type(设备名称(name),设备ID(id),本地编码(localId),本地名称(localName)),是否排除主对象id,是否主对象的class_code查询从对象
+        // 3.不存在/多实例,errorType为1,2(1-主实例,2-从实例),结束
+        // 4.插入关系from_id,to_id,图类型编码,边类型编码,项目id,如果rel_value有值则加上,结束
+        // 5.处理sign:计算标记 1 为手动 2为自动
+        // pe2sp:from_id为资产id,to_id为空间id,主对象obj_type为property,从对象obj_type为space,图类型为PropertyInArch,边类型为Pe2Sp,rel_value为查询的空间对应的class_code
+        // pe2sh:from_id为资产id,to_id为竖井id,主对象obj_type为property,从对象obj_type为shaft,图类型为PropertyInArch,边类型为Pe2Sh
+        // eq2sh_for:from_id为设备id,to_id为竖井id,主对象obj_type为equipment,从对象obj_type为shaft,图类型为MechForArch,边类型为Eq2Sh
+        // eq2fl_for:from_id为设备id,to_id为楼层id,主对象obj_type为equipment,从对象obj_type为floor,图类型为MechForArch,边类型为Eq2Fl
+        // eq2bd_for:from_id为设备id,to_id为建筑id,主对象obj_type为equipment,从对象obj_type为building,图类型为MechForArch,边类型为Eq2Bd
+        // sy2sp_for:from_id为系统id,to_id为空间id,主对象obj_type为system,从对象obj_type为space,图类型为MechForArch,边类型为Sy2Sp
+        // sy2sh_for:from_id为系统id,to_id为竖井id,主对象obj_type为system,从对象obj_type为shaft,图类型为MechForArch,边类型为Sy2Sh
+        // sy2fl_for:from_id为系统id,to_id为楼层id,主对象obj_type为system,从对象obj_type为floor,图类型为MechForArch,边类型为Sy2Fl
+        // sy2bd_for:from_id为系统id,to_id为建筑id,主对象obj_type为system,从对象obj_type为building,图类型为MechForArch,边类型为Sy2Bd
+        // sy2bd_for:from_id为系统id,to_id为建筑id,主对象obj_type为system,从对象obj_type为floor,图类型为MechForArch,边类型为Sy2Bd
+        // *******
+        // 从对象查询排除主对象id,主对象的class_code查询从对象
+        // sp2sp_ConvectionNetwork_1,sp2sp_ConvectionNetwork_2,sp2sp_ConvectionNetwork_3,sp2sp_SpaceNeighborhood_5
+        // sp2sp_SpaceNeighborhood_2,sp2sp_SpaceNeighborhood_4,sp2sp_TrafficNetwork_3,sp2sp_TrafficNetwork_2,
+        // sp2sp_RadiationNetwork_1,sp2sp_RadiationNetwork_2,sp2sp_SpaceNeighborhood_1,sp2sp_TrafficNetwork_1,
+        // sp2sp_SpaceNeighborhood_3
+        // from_id为空间id,to_id为空间id,主对象obj_type为space,从对象obj_type为space,rel_value为查询的主对象空间对应的class_code
+        // sp2sp_ConvectionNetwork_1:图类型为ConvectionNetwork,边类型为Natural
+        // sp2sp_ConvectionNetwork_2:图类型为ConvectionNetwork,边类型为MixMech
+        // sp2sp_ConvectionNetwork_3:图类型为ConvectionNetwork,边类型为OnewayMech
+        // sp2sp_SpaceNeighborhood_1:图类型为SpaceNeighborhood,边类型为None
+        // sp2sp_SpaceNeighborhood_2:图类型为SpaceNeighborhood,边类型为Door
+        // sp2sp_SpaceNeighborhood_3:图类型为SpaceNeighborhood,边类型为Window
+        // sp2sp_SpaceNeighborhood_4:图类型为SpaceNeighborhood,边类型为DoorWindow
+        // sp2sp_SpaceNeighborhood_5:图类型为SpaceNeighborhood,边类型为Connect
+        // sp2sp_TrafficNetwork_1:图类型为TrafficNetwork,边类型为Normal
+        // sp2sp_TrafficNetwork_2:图类型为TrafficNetwork,边类型为FFOpen
+        // sp2sp_TrafficNetwork_3:图类型为TrafficNetwork,边类型为FFClose
+        // sp2sp_RadiationNetwork_1:图类型为RadiationNetwork,边类型为Connect
+        // sp2sp_RadiationNetwork_2:图类型为RadiationNetwork,边类型为Transparent
+        // *******
+        // 从对象查询排除主对象id
+        // eq2eq_LUDistribution_1,eq2eq_LUDistribution_2,eq2eq_HUDistribution_1,eq2eq_HUDistribution_2,
+        // eq2eq_EquipPower_1,eq2eq_EquipPower_2,eq2eq_EquipPower_3,eq2eq_EquipPower_4
+        // from_id为设备id,to_id为设备id,主对象obj_type为equipment,从对象obj_type为equipment,
+        // eq2eq_LUDistribution_1:图类型为LUDistribution,边类型为Normal
+        // eq2eq_LUDistribution_2:图类型为LUDistribution,边类型为Backup
+        // eq2eq_HUDistribution_1:图类型为LUDistribution,边类型为Normal
+        // eq2eq_HUDistribution_2:图类型为LUDistribution,边类型为Backup
+        // eq2eq_EquipPower_1:图类型为EquipPower,边类型为EqNormal
+        // eq2eq_EquipPower_2:图类型为EquipPower,边类型为EqBackup
+        // eq2eq_EquipPower_3:图类型为EquipPower,边类型为SyNormal
+        // eq2eq_EquipPower_4:图类型为EquipPower,边类型为SyBackup
+        // ******
+        // 从对象查询排除主对象id
+        // eq2eq_ACAirNetwork_1,eq2eq_ACAirNetwork_2,eq2eq_ACAirNetwork_3
+        // eq2eq_ChillWaterLoop_1,eq2eq_ChillWaterLoop_2,eq2eq_ChillWaterLoop_3,eq2eq_ChillWaterLoop_4
+        // eq2eq_CoolingWaterLoop_1,eq2eq_CoolingWaterLoop_2,eq2eq_CoolingWaterLoop_3,eq2eq_CoolingWaterLoop_4
+        // eq2eq_CondWaterNetwork_1
+        // eq2eqFreshAirNetwork_1
+        // eq2eq_HeatWaterLoop_1,eq2eq_HeatWaterLoop_2,eq2eq_HeatWaterLoop_3,eq2eq_HeatWaterLoop_4
+        // eq2eq_VentNetwork_1,eq2eq_VentNetwork_2,eq2eq_VentNetwork_3
+        // eq2eq_VRFNetwork_1
+        // from_id为设备id,to_id为设备id,主对象obj_type为equipment,从对象obj_type为equipment,
+        // eq2eq_ACAirNetwork_1:图类型为ACAirNetwork,边类型为Supply
+        // eq2eq_ACAirNetwork_2:图类型为ACAirNetwork,边类型为Return
+        // eq2eq_ACAirNetwork_3:图类型为ACAirNetwork,边类型为Discharge
+        // eq2eq_ChillWaterLoop_1:图类型为ChillWaterLoop,边类型为Supply
+        // eq2eq_ChillWaterLoop_2:图类型为ChillWaterLoop,边类型为Return
+        // eq2eq_ChillWaterLoop_3:图类型为ChillWaterLoop,边类型为Bypass
+        // eq2eq_ChillWaterLoop_4:图类型为ChillWaterLoop,边类型为Fill
+        // eq2eq_CoolingWaterLoop_1:图类型为CoolingWaterLoop,边类型为Supply
+        // eq2eq_CoolingWaterLoop_2:图类型为CoolingWaterLoop,边类型为Return
+        // eq2eq_CoolingWaterLoop_3:图类型为CoolingWaterLoop,边类型为Bypass
+        // eq2eq_CoolingWaterLoop_4:图类型为CoolingWaterLoop,边类型为Fill
+        // eq2eq_CondWaterNetwork_1:图类型为CondWaterNetwork,边类型为Discharge
+        // eq2eqFreshAirNetwork_1:图类型为FreshAirNetwork,边类型为Fresh
+        // eq2eq_HeatWaterLoop_1:图类型为HeatWaterLoop,边类型为Supply
+        // eq2eq_HeatWaterLoop_2:图类型为HeatWaterLoop,边类型为Return
+        // eq2eq_HeatWaterLoop_3:图类型为HeatWaterLoop,边类型为Bypass
+        // eq2eq_HeatWaterLoop_4:图类型为HeatWaterLoop,边类型为Fill
+        // eq2eq_VentNetwork_1:图类型为VentNetwork,边类型为Supply
+        // eq2eq_VentNetwork_2:图类型为VentNetwork,边类型为Discharge
+        // eq2eq_VentNetwork_3:图类型为VentNetwork,边类型为Uncertain
+        // eq2eq_VRFNetwork_1:图类型为VRFNetwork,边类型为SupplyReturn
+        // ******
+        // 从对象查询排除主对象id
+        // eq2eq_SupplyWaterNetwork_1,eq2eq_SupplyWaterNetwork_2
+        // eq2eq_DrainingWaterNetwork_1,eq2eq_DrainingWaterNetwork_2
+        // eq2eq_DrinkingWaterNetwork_1,eq2eq_DrinkingWaterNetwork_2
+        // eq2eq_DHWNetwork_1,eq2eq_DHWNetwork_2
+        // eq2eq_GasNetwork_1,eq2eq_GasNetwork_2
+        // eq2eq_FireWaterNetwork_1,eq2eq_FireWaterNetwork_2
+        // eq2eq_FireVentNetwork_1
+        // eq2eq_RecycleWaterNetwork_1,eq2eq_RecycleWaterNetwork_2
+        // from_id为设备id,to_id为设备id,主对象obj_type为equipment,从对象obj_type为equipment,
+        // eq2eq_SupplyWaterNetwork_1:图类型为SupplyWaterNetwork,边类型为Supply
+        // eq2eq_SupplyWaterNetwork_2:图类型为SupplyWaterNetwork,边类型为Bypass
+        // eq2eq_DrainingWaterNetwork_1:图类型为DrainingWaterNetwork,边类型为Discharge
+        // eq2eq_DrainingWaterNetwork_2:图类型为DrainingWaterNetwork,边类型为Bypass
+        // eq2eq_DrinkingWaterNetwork_1:图类型为DrinkingWaterNetwork,边类型为Supply
+        // eq2eq_DrinkingWaterNetwork_2:图类型为DrinkingWaterNetwork,边类型为Bypass
+        // eq2eq_DHWNetwork_1:图类型为DHWNetwork,边类型为Supply
+        // eq2eq_DHWNetwork_2:图类型为DHWNetwork,边类型为Bypass
+        // eq2eq_GasNetwork_1:图类型为GasNetwork,边类型为Supply
+        // eq2eq_GasNetwork_2:图类型为GasNetwork,边类型为Bypass
+        // eq2eq_FireWaterNetwork_1:图类型为FireWaterNetwork,边类型为Supply
+        // eq2eq_FireWaterNetwork_2:图类型为FireWaterNetwork,边类型为Bypass
+        // eq2eq_FireVentNetwork_1:图类型为FireVentNetwork,边类型为Discharge
+        // eq2eq_RecycleWaterNetwork_1:图类型为RecycleWaterNetwork,边类型为Supply
+        // eq2eq_RecycleWaterNetwork_2:图类型为RecycleWaterNetwork,边类型为Bypass
+        // ******
+        // eq2eq_SensorNetwork_1,eq2eq_ControlRelation_1,eq2eq_ValveRelationship_vv2eq,eq2eq_ControlEquipNetwork
+        // 从对象查询排除主对象id
+        // from_id为设备id,to_id为设备id,主对象obj_type为equipment,从对象obj_type为equipment,
+        // eq2eq_SensorNetwork_1:图类型为SensorNetwork,边类型为Normal
+        // eq2eq_ControlRelation_1:图类型为ControlRelation,边类型为MechCtrl
+        // eq2eq_ValveRelationship_vv2eq:图类型为ValveRelationship,边类型为Vv2Eq
+        // eq2eq_ControlEquipNetwork:图类型为ControlEquipNetwork,边类型为Normal
+        // ******
+        // eq2eq_SensorRelationship_ss2eq
+        // 从对象查询排除主对象id
+        // 传感器类型检查
+        // eq2eq_SensorRelationship_ss2eq:图类型为SensorRelationship,边类型为Ss2Eq
+        // *****
+        // eq2sy_ControlRelation_2,eq2sy_ValveRelationship_vv2sy
+        // eq2sy_ControlRelation_2:图类型为ControlRelation,边类型为SyCtrl
+        // eq2sy_ValveRelationship_vv2sy:图类型为ValveRelationship,边类型为Vv2Sy
+        // *****
+        // eq2sy_SensorRelationship_ss2sy
+        // 传感器类型检查
+        // eq2sy_SensorRelationship_ss2sy:图类型为SensorRelationship,边类型为Ss2Sy
+        // *****
+        // eq2sp_SensorRelationship_ss2sp
+        // 传感器类型检查
+        // eq2sp_SensorRelationship_ss2sp:图类型为SensorRelationship,边类型为Ss2Sp
+        // *****
+        // eq2sp_x
+        // bd2bd_ArchForArch,bd2fl_ArchForArch,bd2sh_ArchForArch,bd2sp_ArchForArch,fl2bd_ArchForArch,fl2fl_ArchForArch
+        // fl2sh_ArchForArch,fl2sp_ArchForArch,sh2bd_ArchForArch,sh2fl_ArchForArch,sh2sh_ArchForArch,sh2sp_ArchForArch
+        // sp2bd_ArchForArch,sp2fl_ArchForArch,sp2sh_ArchForArch,sp2sp_ArchForArch
+
+
+
+
+
+
+
+        return null;
+    }
+}

+ 290 - 0
src/main/java/com/persagy/proxy/enumeration/AdmRelationTypeEnum.java

@@ -0,0 +1,290 @@
+package com.persagy.proxy.enumeration;
+
+import cn.hutool.core.collection.CollUtil;
+
+import java.util.Set;
+/***
+ * Description: ADM关系类型枚举,直接用枚举类表示,以前是在数据库里存储的
+ * @author : lijie
+ * @date :2021/9/2 14:54
+ * Update By lijie 2021/9/2 14:54
+ */
+public enum AdmRelationTypeEnum {
+
+
+    /**燃气旁通-气体管道-*/
+    EQ2EQ_GASNETWORK_2("eq2eq_GasNetwork_2","GasNetwork","Bypass",false,true,false,false,false,false),
+    /**设备所在楼层-设备→楼层-【设备台账】*/
+    EQ2FL("eq2fl","MechInArch","Eq2Fl",false,false,false,false,false,false),
+    /**空间隔断有窗-空间-空间-【全部关系总览】*/
+    SP2SP_SPACENEIGHBORHOOD_3("sp2sp_SpaceNeighborhood_3","SpaceNeighborhood","Window",true,true,true,false,true,false),
+    /**设备所在物业分区-设备→业务空间-【业务空间台账】*/
+    EQ2SP_IN("eq2sp_in","MechInArch","Eq2Sp",false,false,false,false,false,false),
+    /**建筑下的竖井-竖井→建筑-【竖井台账】*/
+    SH2BD("sh2bd","ShaftandBuilding","Bd2Sh",false,false,false,false,false,false),
+    /**空间隔断有门-空间-空间-【全部关系总览】*/
+    SP2SP_SPACENEIGHBORHOOD_2("sp2sp_SpaceNeighborhood_2","SpaceNeighborhood","Door",true,true,true,false,true,false),
+    /**空间连通-空间-空间-【全部关系总览】*/
+    SP2SP_SPACENEIGHBORHOOD_5("sp2sp_SpaceNeighborhood_5","SpaceNeighborhood","Connect",true,true,true,false,true,false),
+    /**系统服务于竖井-系统→竖井-【竖井台账】*/
+    SY2SH_FOR("sy2sh_for","MechForArch","Sy2Sh",false,false,false,false,true,false),
+    /**污水排水-污水排水相关设备,沿水流方向-*/
+    EQ2EQ_DRAININGWATERNETWORK_1("eq2eq_DrainingWaterNetwork_1","DrainingWaterNetwork","Discharge",false,true,false,false,false,false),
+    /**设备服务于功能分区-设备→业务空间-【业务空间台账】*/
+    EQ2SP_FOR("eq2sp_for","MechForArch","Eq2Sp",false,false,false,false,false,false),
+    /**空调回风-空调回风相关设备,沿气流方向-*/
+    EQ2EQ_ACAIRNETWORK_2("eq2eq_ACAirNetwork_2","ACAirNetwork","Return",false,true,false,false,false,false),
+    /**系统下的设备-系统→设备-【系统台账】,【设备台账】*/
+    EQ2SY("eq2sy","SystemEquip","Sy2Eq",false,false,false,false,false,false),
+    /**空调冷冻水补水-空调冷冻水补水相关设备,沿水流方向-*/
+    EQ2EQ_CHILLWATERLOOP_4("eq2eq_ChillWaterLoop_4","ChillWaterLoop","Fill",false,true,false,false,false,false),
+    /**设备服务于建筑-设备→建筑-【设备台账】*/
+    EQ2BD_FOR("eq2bd_for","MechForArch","Eq2Bd",false,false,false,false,true,false),
+    /**空调冷凝水排水-空调冷凝水排水相关设备,沿水流方向-*/
+    EQ2EQ_CONDWATERNETWORK_1("eq2eq_CondWaterNetwork_1","CondWaterNetwork","Discharge",false,true,false,false,false,false),
+    /**空间隔断无门窗-空间-空间-【全部关系总览】*/
+    SP2SP_SPACENEIGHBORHOOD_1("sp2sp_SpaceNeighborhood_1","SpaceNeighborhood","None",true,true,true,false,true,false),
+    /**阀门限制设备关系-阀门→被限设备-【全部关系总览】*/
+    EQ2EQ_VALVERELATIONSHIP_VV2EQ("eq2eq_ValveRelationship_vv2eq","ValveRelationship","Vv2Eq",false,true,false,false,false,false),
+    /**资产所在业务空间-资产→业务空间-*/
+    PE2SP("pe2sp","PropertyInArch","Pe2Sp",true,false,false,false,true,false),
+    /**通风排风-通风排风相关设备,沿气流方向-*/
+    EQ2EQ_VENTNETWORK_2("eq2eq_VentNetwork_2","VentNetwork","Discharge",false,true,false,false,false,false),
+    /**弱电通信连接-上位机→下位机,连接弱电、消防、安防等专业设备-*/
+    EQ2EQ_SENSORNETWORK_1("eq2eq_SensorNetwork_1","SensorNetwork","Normal",false,true,false,false,false,false),
+    /**空调冷却水旁通-液体管道-*/
+    EQ2EQ_COOLINGWATERLOOP_3("eq2eq_CoolingWaterLoop_3","CoolingWaterLoop","Bypass",false,true,false,false,false,false),
+    /**设备服务于楼层-设备→楼层-【设备台账】*/
+    EQ2FL_FOR("eq2fl_for","MechForArch","Eq2Fl",false,false,false,false,true,false),
+    /**系统常规电源-低/高压开关柜→用电设备-【全部关系总览】*/
+    EQ2EQ_EQUIPPOWER_3("eq2eq_EquipPower_3","EquipPower","SyNormal",false,true,false,false,false,true),
+    /**空调排风-空调排风相关设备,沿气流方向-*/
+    EQ2EQ_ACAIRNETWORK_3("eq2eq_ACAirNetwork_3","ACAirNetwork","Discharge",false,true,false,false,false,false),
+    /**生活给水旁通-液体管道-*/
+    EQ2EQ_SUPPLYWATERNETWORK_2("eq2eq_SupplyWaterNetwork_2","SupplyWaterNetwork","Bypass",false,true,false,false,false,false),
+    /**系统控制关系-控制设备→被控系统-【全部关系总览】*/
+    EQ2SY_CONTROLRELATION_2("eq2sy_ControlRelation_2","ControlRelation","SyCtrl",false,false,false,false,true,false),
+    /**采暖水补水-采暖水补水相关设备,沿水流方向-*/
+    EQ2EQ_HEATWATERLOOP_4("eq2eq_HeatWaterLoop_4","HeatWaterLoop","Fill",false,true,false,false,false,false),
+    /**建筑下的空间-建筑→空间-【业务空间台账】*/
+    BD2SP("bd2sp","ArchSubset","Bd2Sp",false,false,false,false,false,false),
+    /**消防常开交通-业务空间-业务空间-【全部关系总览】*/
+    SP2SP_TRAFFICNETWORK_2("sp2sp_TrafficNetwork_2","TrafficNetwork","FFOpen",true,true,true,false,true,false),
+    /**楼层下的业务空间-楼层→业务空间-【业务空间台账】*/
+    FL2SP("fl2sp","ArchSubset","Fl2Sp",false,false,false,false,false,false),
+    /**竖井下的业务空间-竖井→空间-【竖井台账】*/
+    SH2SP_ARCHSUBSET("Sh2Sp_ArchSubset","ArchSubset","Sh2Sp",false,false,false,false,false,false),
+    /**空气混合机械通风-空间-空间-【全部关系总览】*/
+    SP2SP_CONVECTIONNETWORK_2("sp2sp_ConvectionNetwork_2","ConvectionNetwork","MixMech",true,true,true,false,true,false),
+    /**系统所在竖井-系统→竖井-【系统台账】,【竖井台账】*/
+    SY2SH("sy2sh","MechInArch","Sy2Sh",false,false,false,false,false,false),
+    /**系统所在建筑-系统→建筑-【系统台账】*/
+    SY2BD_MECHINARCH("sy2bd_MechInArch","MechInArch","Sy2Bd",false,false,false,false,false,false),
+    /**生活热水旁通-液体管道-*/
+    EQ2EQ_DHWNETWORK_2("eq2eq_DHWNetwork_2","DHWNetwork","Bypass",false,true,false,false,false,false),
+    /**采暖水供水-采暖水供水相关设备,沿水流方向-*/
+    EQ2EQ_HEATWATERLOOP_1("eq2eq_HeatWaterLoop_1","HeatWaterLoop","Supply",false,true,false,false,false,false),
+    /**空气单向机械通风-空间→空间-【全部关系总览】*/
+    SP2SP_CONVECTIONNETWORK_3("sp2sp_ConvectionNetwork_3","ConvectionNetwork","OnewayMech",true,true,true,false,true,false),
+    /**弱电通信连接-弱电通信相关设备,沿弱电信号方向-*/
+    EQ2EQ_CONTROLEQUIPNETWORK("eq2eq_ControlEquipNetwork","ControlEquipNetwork","Normal",false,true,false,false,false,false),
+    /**系统服务于楼层-系统→楼层-【系统台账】*/
+    SY2FL_FOR("sy2fl_for","MechForArch","Sy2Fl",false,false,false,false,true,false),
+    /**生活热水供水-生活热水供水相关设备,沿水流方向-*/
+    EQ2EQ_DHWNETWORK_1("eq2eq_DHWNetwork_1","DHWNetwork","Supply",false,true,false,false,false,false),
+    /**中水旁通-液体管道-*/
+    EQ2EQ_RECYCLEWATERNETWORK_2("eq2eq_RecycleWaterNetwork_2","RecycleWaterNetwork","Bypass",false,true,false,false,false,false),
+    /**传感器测量系统关系-传感器→被测系统-【全部关系总览】*/
+    EQ2SY_SENSORRELATIONSHIP_SS2SY("eq2sy_SensorRelationship_ss2sy","SensorRelationship","Ss2Sy",false,false,false,true,true,false),
+    /**空间隔断有门窗-空间-空间-【全部关系总览】*/
+    SP2SP_SPACENEIGHBORHOOD_4("sp2sp_SpaceNeighborhood_4","SpaceNeighborhood","DoorWindow",true,true,true,false,true,false),
+    /**资产所在楼层-楼层→资产-【资产台账】*/
+    PE2FL("pe2fl","ArchSubset","Pe2Fl",false,false,false,false,false,false),
+    /**中水供水-中水供水相关设备,沿水流方向-*/
+    EQ2EQ_RECYCLEWATERNETWORK_1("eq2eq_RecycleWaterNetwork_1","RecycleWaterNetwork","Supply",false,true,false,false,false,false),
+    /**竖井贯通关系-竖井-竖井-【竖井台账】*/
+    SH2SH("sh2sh","ThroughRelationship","Sh2Sh",false,false,false,false,false,false),
+    /**低压配电普通连接-低压配电相关设备,沿电流方向-【调研录入参考资料CAD图纸】*/
+    EQ2EQ_LUDISTRIBUTION_1("eq2eq_LUDistribution_1","LUDistribution","Normal",false,true,false,false,false,false),
+    /**消防排烟-消防排烟相关设备,沿气流方向-*/
+    EQ2EQ_FIREVENTNETWORK_1("eq2eq_FireVentNetwork_1","FireVentNetwork","Discharge",false,true,false,false,false,false),
+    /**消防给水供水-消防给水供水相关设备,沿水流方向-*/
+    EQ2EQ_FIREWATERNETWORK_1("eq2eq_FireWaterNetwork_1","FireWaterNetwork","Supply",false,true,false,false,false,false),
+    /**高压变配电互备连接-分段主柜,分段辅柜-【调研录入参考资料CAD图纸】*/
+    EQ2EQ_HUDISTRIBUTION_2("eq2eq_HUDistribution_2","HUDistribution","Backup",false,true,false,false,false,false),
+    /**污水旁通-液体管道-*/
+    EQ2EQ_DRAININGWATERNETWORK_2("eq2eq_DrainingWaterNetwork_2","DrainingWaterNetwork","Bypass",false,true,false,false,false,false),
+    /**楼层贯通关系-楼层-楼层-【建筑楼层管理】*/
+    FL2FL("fl2fl","ThroughRelationship","Fl2Fl",false,false,false,false,false,false),
+    /**多联机供回制冷剂-多联机室外机→多联机室内机-*/
+    EQ2EQ_VRFNETWORK_1("eq2eq_VRFNetwork_1","VRFNetwork","SupplyReturn",false,true,false,false,false,false),
+    /**低压配电互备连接-低压开关柜-母联柜-【调研录入参考资料CAD图纸】*/
+    EQ2EQ_LUDISTRIBUTION_2("eq2eq_LUDistribution_2","LUDistribution","Backup",false,true,false,false,false,false),
+    /**直饮水旁通-液体管道-*/
+    EQ2EQ_DRINKINGWATERNETWORK_2("eq2eq_DrinkingWaterNetwork_2","DrinkingWaterNetwork","Bypass",false,true,false,false,false,false),
+    /**传感器测量空间关系-传感器→被测空间-【全部关系总览】*/
+    EQ2SP_SENSORRELATIONSHIP_SS2SP("eq2sp_SensorRelationship_ss2sp","SensorRelationship","Ss2Sp",true,false,false,true,true,false),
+    /**租户租用业务空间-租户→租赁业务空间-【租户台账】*/
+    TN2SP("tn2sp","TenentInArch","Tn2Sp",false,false,false,false,false,false),
+    /**空调冷冻水旁通-供冷集水器-供冷分水器,液体管道-*/
+    EQ2EQ_CHILLWATERLOOP_3("eq2eq_ChillWaterLoop_3","ChillWaterLoop","Bypass",false,true,false,false,false,false),
+    /**空调冷冻水回水-空调冷冻水回水相关设备,沿水流方向-*/
+    EQ2EQ_CHILLWATERLOOP_2("eq2eq_ChillWaterLoop_2","ChillWaterLoop","Return",false,true,false,false,false,false),
+    /**燃气供气-燃气供气相关设备,沿气流方向-*/
+    EQ2EQ_GASNETWORK_1("eq2eq_GasNetwork_1","GasNetwork","Supply",false,true,false,false,false,false),
+    /**系统服务于建筑-系统→建筑-【系统台账】*/
+    SY2BD_FOR("sy2bd_for","MechForArch","Sy2Bd",false,false,false,false,true,false),
+    /**新风送风-新风送风相关设备,沿气流方向-*/
+    EQ2EQFRESHAIRNETWORK_1("eq2eqFreshAirNetwork_1","FreshAirNetwork","Fresh",false,true,false,false,false,false),
+    /**系统备用电源-低/高压开关柜→用电设备-【全部关系总览】*/
+    EQ2EQ_EQUIPPOWER_4("eq2eq_EquipPower_4","EquipPower","SyBackup",false,true,false,false,false,true),
+    /**空调冷却水补水-空调冷却水补水相关设备,沿水流方向-*/
+    EQ2EQ_COOLINGWATERLOOP_4("eq2eq_CoolingWaterLoop_4","CoolingWaterLoop","Fill",false,true,false,false,false,false),
+    /**设备所在竖井-设备→竖井-【竖井台账】*/
+    EQ2SH("eq2sh","MechInArch","Eq2Sh",false,false,false,false,false,false),
+    /**空调冷冻水供水-空调冷冻水供水相关设备,沿水流方向-*/
+    EQ2EQ_CHILLWATERLOOP_1("eq2eq_ChillWaterLoop_1","ChillWaterLoop","Supply",false,true,false,false,false,false),
+    /**直饮水供水-直饮水供水相关设备,沿水流方向-*/
+    EQ2EQ_DRINKINGWATERNETWORK_1("eq2eq_DrinkingWaterNetwork_1","DrinkingWaterNetwork","Supply",false,true,false,false,false,false),
+    /**资产属于建筑-建筑→资产-【资产台账】*/
+    PE2BD("pe2bd","ArchSubset","Pe2Bd",false,false,false,false,false,false),
+    /**设备服务于竖井-设备→竖井-【竖井台账】*/
+    EQ2SH_FOR("eq2sh_for","MechForArch","Eq2Sh",false,false,false,false,true,false),
+    /**设备备用电源-低/高压开关柜→用电设备-【全部关系总览】*/
+    EQ2EQ_EQUIPPOWER_2("eq2eq_EquipPower_2","EquipPower","EqBackup",false,true,false,false,false,true),
+    /**空调冷却水回水-空调冷却水回水相关设备,沿水流方向-*/
+    EQ2EQ_COOLINGWATERLOOP_2("eq2eq_CoolingWaterLoop_2","CoolingWaterLoop","Return",false,true,false,false,false,false),
+    /**阀门限制系统关系-阀门→被限系统-【全部关系总览】*/
+    EQ2SY_VALVERELATIONSHIP_VV2SY("eq2sy_ValveRelationship_vv2sy","ValveRelationship","Vv2Sy",false,false,false,false,true,false),
+    /**普通交通-空间-空间-【全部关系总览】*/
+    SP2SP_TRAFFICNETWORK_1("sp2sp_TrafficNetwork_1","TrafficNetwork","Normal",true,true,true,false,true,false),
+    /**光照透明隔断-空间-空间-【全部关系总览】*/
+    SP2SP_RADIATIONNETWORK_2("sp2sp_RadiationNetwork_2","RadiationNetwork","Transparent",true,true,true,false,true,false),
+    /**消防给水旁通-液体管道-*/
+    EQ2EQ_FIREWATERNETWORK_2("eq2eq_FireWaterNetwork_2","FireWaterNetwork","Bypass",false,true,false,false,false,false),
+    /**空气自然对流-空间-空间-【全部关系总览】*/
+    SP2SP_CONVECTIONNETWORK_1("sp2sp_ConvectionNetwork_1","ConvectionNetwork","Natural",true,true,true,false,true,false),
+    /**通风送风-通风送风相关设备,沿气流方向-*/
+    EQ2EQ_VENTNETWORK_1("eq2eq_VentNetwork_1","VentNetwork","Supply",false,true,false,false,false,false),
+    /**消防常关交通-空间-空间-【全部关系总览】*/
+    SP2SP_TRAFFICNETWORK_3("sp2sp_TrafficNetwork_3","TrafficNetwork","FFClose",true,true,true,false,true,false),
+    /**设备常规电源-低/高压开关柜→用电设备-【全部关系总览】*/
+    EQ2EQ_EQUIPPOWER_1("eq2eq_EquipPower_1","EquipPower","EqNormal",false,true,false,false,false,true),
+    /**系统所在楼层-系统→楼层-【系统台账】*/
+    SY2FL("sy2fl","MechInArch","Sy2Fl",false,false,false,false,false,false),
+    /**传感器测量设备关系-传感器→被测设备-【全部关系总览】*/
+    EQ2EQ_SENSORRELATIONSHIP_SS2EQ("eq2eq_SensorRelationship_ss2eq","SensorRelationship","Ss2Eq",false,true,false,true,false,false),
+    /**资产所在竖井-资产→竖井-*/
+    PE2SH("pe2sh","PropertyInArch","Pe2Sh",false,false,false,false,true,false),
+    /**采暖水回水-采暖水回水相关设备,沿水流方向-*/
+    EQ2EQ_HEATWATERLOOP_2("eq2eq_HeatWaterLoop_2","HeatWaterLoop","Return",false,true,false,false,false,false),
+    /**设备控制关系-控制设备→被控设备-【全部关系总览】*/
+    EQ2EQ_CONTROLRELATION_1("eq2eq_ControlRelation_1","ControlRelation","MechCtrl",false,true,false,false,false,false),
+    /**光照连通-空间-空间-【全部关系总览】*/
+    SP2SP_RADIATIONNETWORK_1("sp2sp_RadiationNetwork_1","RadiationNetwork","Connect",true,true,true,false,true,false),
+    /**竖井下的业务空间-竖井→空间-【竖井台账】*/
+    SH2SP("sh2sp","ShaftandSpace","Sh2Sp",false,false,false,false,false,false),
+    /**采暖水旁通-供暖集水器-供暖分水器,液体管道-*/
+    EQ2EQ_HEATWATERLOOP_3("eq2eq_HeatWaterLoop_3","HeatWaterLoop","Bypass",false,true,false,false,false,false),
+    /**空调冷却水供水-空调冷却水供水相关设备,沿水流方向-*/
+    EQ2EQ_COOLINGWATERLOOP_1("eq2eq_CoolingWaterLoop_1","CoolingWaterLoop","Supply",false,true,false,false,false,false),
+    /**建筑服务于建筑-建筑→建筑-*/
+    BD2BD_ARCHFORARCH("bd2bd_ArchForArch","","Bd2Bd",false,false,false,false,true,false),
+    /**竖井服务于楼层-竖井→楼层-*/
+    SH2FL_ARCHFORARCH("sh2fl_ArchForArch","","Sh2Fl",false,false,false,false,true,false),
+    /**竖井服务于竖井-竖井→竖井-*/
+    SH2SH_ARCHFORARCH("sh2sh_ArchForArch","","Sh2Sh",false,false,false,false,true,false),
+    /**竖井服务于空间-竖井→空间-*/
+    SH2SP_ARCHFORARCH("sh2sp_ArchForArch","","Sh2Sp",true,false,false,false,true,false),
+    /**空间服务于建筑-空间→建筑-*/
+    SP2BD_ARCHFORARCH("sp2bd_ArchForArch","","Sp2Bd",true,false,false,false,true,false),
+    /**空间服务于楼层-空间→楼层-*/
+    SP2FL_ARCHFORARCH("sp2fl_ArchForArch","","Sp2Fl",true,false,false,false,true,false),
+    /**空间服务于竖井-空间→竖井-*/
+    SP2SH_ARCHFORARCH("sp2sh_ArchForArch","","Sp2Sh",true,false,false,false,true,false),
+    /**空间服务于空间-空间→空间-*/
+    SP2SP_ARCHFORARCH("sp2sp_ArchForArch","","Sp2Sp",true,false,false,false,true,false),
+    /**建筑服务于楼层-建筑→楼层-*/
+    BD2FL_ARCHFORARCH("bd2fl_ArchForArch","","Bd2Fl",false,false,false,false,true,false),
+    /**建筑服务于竖井-建筑→竖井-*/
+    BD2SH_ARCHFORARCH("bd2sh_ArchForArch","","Bd2Sh",false,false,false,false,true,false),
+    /**建筑下的竖井-建筑→竖井-【系统台账】*/
+    BD2SH_ARCHSUBSET("bd2sh_ArchSubset","ArchSubset","Bd2Sh",false,false,false,false,false,false),
+    /**建筑服务于空间-建筑→空间-*/
+    BD2SP_ARCHFORARCH("bd2sp_ArchForArch","","Bd2Sp",false,false,false,false,true,false),
+    /**楼层服务于建筑-楼层→建筑-*/
+    FL2BD_ARCHFORARCH("fl2bd_ArchForArch","","Fl2Bd",false,false,false,false,true,false),
+    /**楼层服务于楼层-楼层→楼层-*/
+    FL2FL_ARCHFORARCH("fl2fl_ArchForArch","","Fl2Fl",false,false,false,false,true,false),
+    /**楼层服务于竖井-楼层→竖井-*/
+    FL2SH_ARCHFORARCH("fl2sh_ArchForArch","","Fl2Sh",false,false,false,false,true,false),
+    /**楼层服务于空间-楼层→空间-*/
+    FL2SP_ARCHFORARCH("fl2sp_ArchForArch","","Fl2Sp",false,false,false,false,true,false),
+    /**竖井服务于建筑-竖井→建筑-*/
+    SH2BD_ARCHFORARCH("sh2bd_ArchForArch","","Sh2Bd",false,false,false,false,true,false),
+    /**系统所在空间-系统→业务空间-【系统台账】,【业务空间台账】*/
+    SY2SP("sy2sp","MechInArch","Sy2Sp",false,false,false,false,false,false),
+    /**设备所在建筑-设备→建筑-【设备台账】*/
+    SYEQ2BD("syeq2bd","MechInArch","Eq2Bd",false,false,false,false,false,false),
+    /**系统服务于空间-系统→业务空间-【业务空间台账】*/
+    SY2SP_FOR("sy2sp_for","MechForArch","Sy2Sp",true,false,false,false,true,false),
+    /**空调送风-空调送风相关设备,沿气流方向-*/
+    EQ2EQ_ACAIRNETWORK_1("eq2eq_ACAirNetwork_1","ACAirNetwork","Supply",false,true,false,false,false,false),
+    /**生活给水供水-生活给水供水相关设备,沿水流方向-*/
+    EQ2EQ_SUPPLYWATERNETWORK_1("eq2eq_SupplyWaterNetwork_1","SupplyWaterNetwork","Supply",false,true,false,false,false,false),
+    /**通风不确定-通风相关设备-*/
+    EQ2EQ_VENTNETWORK_3("eq2eq_VentNetwork_3","VentNetwork","Uncertain",false,true,false,false,false,false),
+    /**高压变配电普通连接-高压变配电相关设备,沿电流方向-【调研录入参考资料CAD图纸】*/
+    EQ2EQ_HUDISTRIBUTION_1("eq2eq_HUDistribution_1","HUDistribution","Normal",false,true,false,false,false,false);
+
+    /**数据中心的关系类型*/
+    private String relationType;
+    /**图类型编码*/
+    private String graphCode;
+    /**边类型编码*/
+    private String relCode;
+    /**拥有关系值的标识,true-有,false-无,一般空间对象分类有,为其class_code*/
+    private Boolean hasRelValue;
+    /**是否过滤主对象id,true-过滤,false-不过滤*/
+    private Boolean hasFilterMasterId;
+    /**是否过滤classCode,true-过滤,false-不过滤*/
+    private Boolean hasFilterClassCode;
+    /**是否检查传感器类型,true-检查,false-不检查*/
+    private Boolean hasCheckSensor;
+    /**是否检查CADID,true-检查,false-不检查*/
+    private Boolean hasCheckCadId;
+    /**是否检查classCode,true-检查,false-不检查*/
+    private Boolean hasCheckClassCode;
+    /**是否检查classCode使用的classCodes列表*/
+    private Set<String> checkClassCodes= CollUtil.newHashSet("SETDLS","SETDHS");
+    /**是否检查传感器使用的传感器类型*/
+    private Set<String> checkSensorCodes= CollUtil.newHashSet("SPVSCM","FFEALS","FFFPSE","FFFASE","SPIASE",
+            "WEGMCM","WEOFCM","WEGMPD","FFGASE","OTSESP","OTSESD","OTSETP","OTSEVD","OTSEPS","OTSEPF","OTSERH",
+            "OTSEIP","OTSEIL","OTSEHT","OTSECB","OTSECT","OTSEEE","OTSEDP","OTSEFL");
+    /***
+     * Description: 构造函数
+     * @param relationType : 数据中心的关系类型
+     * @param graphCode : 标准字典定义的图类型编码
+     * @param relCode : 标准字典定义的边类型编码
+     * @param hasRelValue : 拥有关系值的标识,true-有,false-无,一般空间对象分类有,为其class_code
+     * @param hasFilterMasterId : 是否过滤主对象id,true-过滤,false-不过滤
+     * @param hasCheckSensor : 是否检查传感器类型,true-检查,false-不检查
+     * @param hasCheckCadId : 是否检查CADID,true-检查,false-不检查
+     * @param hasCheckClassCode : 是否检查classCode,true-检查,false-不检查
+     * @author : lijie
+     * Update By lijie 2021/9/2 14:53
+     */
+    AdmRelationTypeEnum(String relationType, String graphCode, String relCode, Boolean hasRelValue,
+                        Boolean hasFilterMasterId,Boolean hasFilterClassCode, Boolean hasCheckSensor, Boolean hasCheckCadId,
+                        Boolean hasCheckClassCode) {
+        this.relationType = relationType;
+        this.graphCode = graphCode;
+        this.relCode = relCode;
+        this.hasRelValue = hasRelValue;
+        this.hasFilterMasterId = hasFilterMasterId;
+        this.hasFilterClassCode = hasFilterClassCode;
+        this.hasCheckSensor = hasCheckSensor;
+        this.hasCheckCadId = hasCheckCadId;
+        this.hasCheckClassCode = hasCheckClassCode;
+    }
+}