|
@@ -140,9 +140,6 @@ class DataCenterSync {
|
|
|
var ids= Gson().fromJson<ArrayList<String>>(message.toId,type)
|
|
|
logger.debug("id= ${ids.toJson()}**************************")
|
|
|
equipInSpaceSync.equipInSpaceCreate(message,"MechInArch","Eq2Sp",ids)
|
|
|
- }else {
|
|
|
- logger.debug("没识别**************************")
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -157,6 +154,28 @@ class DataCenterSync {
|
|
|
"12" -> { // 删除关系
|
|
|
equipInSpaceSync.delRel(message, "MechSubset", "Sy2Eq")
|
|
|
}
|
|
|
+ "13" ->{
|
|
|
+ if (message.fromId!!.startsWith("Eq")){
|
|
|
+ var ids= Gson().fromJson<ArrayList<String>>(message.toId,type)
|
|
|
+ equipInSpaceSync.addRelSuperposition(message,ids,"MechSubset","Sy2Eq")
|
|
|
+
|
|
|
+ } else if (message.fromId!!.startsWith("Sy")) {
|
|
|
+ var ids= Gson().fromJson<ArrayList<String>>(message.toId,type)
|
|
|
+
|
|
|
+ equipInSpaceSync.addRelSuperpositionFan(message,ids,"MechSubset","Sy2Eq")
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ "14" ->{
|
|
|
+ if (message.fromId!!.startsWith("Sy")) {
|
|
|
+ var ids= Gson().fromJson<ArrayList<String>>(message.toId,type)
|
|
|
+ logger.debug("id= ${ids.toJson()}**************************")
|
|
|
+ equipInSpaceSync.equipInSpaceCreate(message,"MechSubset","Sy2Eq",ids)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
"Sy2Sh" -> {
|