浏览代码

新增ADM关系与中台关系映射枚举类

lijie 3 年之前
父节点
当前提交
2898a75f34

+ 31 - 0
src/main/java/com/persagy/proxy/adm/constant/AdmObjectInfoConstant.java

@@ -0,0 +1,31 @@
+package com.persagy.proxy.adm.constant;
+
+import cn.hutool.core.collection.CollUtil;
+import lombok.Data;
+import lombok.Getter;
+
+import java.util.Set;
+
+/**
+ * 对象类型
+ * @author Charlie Yu
+ * @date 2021-06-25
+ */
+public interface AdmObjectInfoConstant {
+    /** CADID图纸编码*/
+    String CADID = "cadId";
+    /**名称*/
+    String NAME = "name";
+    /**ID*/
+    String ID = "ID";
+    /**本地编码*/
+    String LOCAL_ID = "localId";
+    /**本地名称*/
+    String LOCAL_NAME = "localName";
+    /**是否检查classCode使用的classCodes列表*/
+    Set<String> CHECK_CLASS_CODES= CollUtil.newHashSet("SETDLS","SETDHS");
+    /**是否检查传感器使用的传感器类型*/
+    Set<String> CHECK_SENSOR_CODES= 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");
+}

+ 1 - 0
src/main/java/com/persagy/proxy/adm/constant/AdmObjectType.java

@@ -19,6 +19,7 @@ public enum AdmObjectType {
     SHAFT("shaft", "竖井"),
     COMPONENT("component", "部件"),
     VIRTUAL("virtual", "虚拟对象"),
+    PROPERTY("property", "资产"),
     TOOL("tool", "工具"),
     MATERIAL("material", "耗材");
 

+ 346 - 0
src/main/java/com/persagy/proxy/adm/constant/AdmRelationTypeEnum.java

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

+ 1 - 1
src/main/java/com/persagy/proxy/adm/controller/ReportDownloadController.java

@@ -8,13 +8,13 @@ import java.nio.charset.StandardCharsets;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
+import com.alibaba.excel.ExcelWriter;
 import org.springframework.util.ResourceUtils;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.RestController;
 
 import com.alibaba.excel.EasyExcel;
-import com.alibaba.excel.ExcelWriter;
 import com.persagy.proxy.adm.constant.AdmCommonConstant;
 
 import lombok.extern.slf4j.Slf4j;

+ 23 - 5
src/main/java/com/persagy/proxy/adm/service/impl/AdmManualRelationCalcServiceImpl.java

@@ -3,12 +3,16 @@ 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.constant.AdmObjectInfoConstant;
 import com.persagy.proxy.adm.model.AdmRelationAddRequest;
 import com.persagy.proxy.adm.request.AdmCreateResponse;
 import com.persagy.proxy.adm.service.AdmManualRelationCalcService;
+import com.persagy.proxy.adm.constant.AdmRelationTypeEnum;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Service;
 
+import java.util.Map;
+
 /***
  * Description: 手动计算逻辑处理类
  * @author : lijie
@@ -17,7 +21,7 @@ import org.springframework.stereotype.Service;
  */
 @Service
 @Slf4j
-public class AdmManualRelationCalcServiceImpl implements AdmManualRelationCalcService {
+public class AbstractAdmManualRelationCalcServiceImpl implements AdmManualRelationCalcService {
 
     /***
      * Description: 添加关系
@@ -43,8 +47,6 @@ public class AdmManualRelationCalcServiceImpl implements AdmManualRelationCalcSe
         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,
@@ -54,14 +56,30 @@ public class AdmManualRelationCalcServiceImpl implements AdmManualRelationCalcSe
         // 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
+        // 校验关系类型是否存在
+        Map<String, AdmRelationTypeEnum> relationTypeMap = AdmRelationTypeEnum.getRelationTypeMap();
+        if (relationTypeMap.containsKey(request.getRelType())){
+            return AdmCreateResponse.failure("不存在的关系类型");
+        }
+        AdmRelationTypeEnum relationTypeEnum = relationTypeMap.get(request.getRelType());
+        // type为cadId直接提示从对象不存在CADID编码并且errorType=2
+        if (AdmObjectInfoConstant.CADID.equals(request.getType()) && relationTypeEnum.getHasCheckCadId()){
+            return AdmCreateResponse.failure("从对象不存在CADID编码","2");
+        }
+
+
+
+
+        // 1.根据项目id和关系类型更新计算时间为当前时间
+        // 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为上面几种的规定从对象不能重复主对象和从对象不能重复
+        // relType为上面几种的规定从对象不能重复,主对象和从对象不能重复
         // *******
         // eq2eq_EquipPower_1,eq2eq_EquipPower_2,eq2eq_EquipPower_3,eq2eq_EquipPower_4
         // 主对象的class_code必须等于SETDLS,SETDHS,其他的报不符合主对象条件限制错误

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

@@ -1,290 +0,0 @@
-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;
-    }
-}