|
@@ -188,6 +188,25 @@ class DataCenterSync {
|
|
|
"12" -> { // 删除关系
|
|
|
equipInSpaceSync.delRel(message, "MechInArch", "Sy2Sh")
|
|
|
}
|
|
|
+ "13" ->{
|
|
|
+ if (message.fromId!!.startsWith("Sy")){
|
|
|
+ var ids= Gson().fromJson<ArrayList<String>>(message.toId,type)
|
|
|
+ equipInSpaceSync.addRelSuperposition(message,ids,"MechInArch","Sy2Sh")
|
|
|
+
|
|
|
+ } else if (message.fromId!!.startsWith("Sh")) {
|
|
|
+ var ids= Gson().fromJson<ArrayList<String>>(message.toId,type)
|
|
|
+
|
|
|
+ equipInSpaceSync.addRelSuperpositionFan(message,ids,"MechInArch","Sy2Sh")
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ "14" ->{
|
|
|
+ if (message.fromId!!.startsWith("Sy")) {
|
|
|
+ var ids= Gson().fromJson<ArrayList<String>>(message.toId,type)
|
|
|
+ equipInSpaceSync.equipInSpaceCreate(message,"MechInArch","Sy2Sh",ids)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
"Sy2Sp" -> {
|
|
@@ -200,6 +219,24 @@ class DataCenterSync {
|
|
|
"12" -> { // 删除关系
|
|
|
equipInSpaceSync.delRel(message, "MechInArch", "Sy2Sp")
|
|
|
}
|
|
|
+ "13" ->{
|
|
|
+ if (message.fromId!!.startsWith("Sy")){
|
|
|
+ var ids= Gson().fromJson<ArrayList<String>>(message.toId,type)
|
|
|
+ equipInSpaceSync.addRelSuperposition(message,ids,"MechInArch","Sy2Sp")
|
|
|
+
|
|
|
+ } else if (message.fromId!!.startsWith("Sp")) {
|
|
|
+ var ids= Gson().fromJson<ArrayList<String>>(message.toId,type)
|
|
|
+
|
|
|
+ equipInSpaceSync.addRelSuperpositionFan(message,ids,"MechInArch","Sy2Sp")
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ "14" ->{
|
|
|
+ if (message.fromId!!.startsWith("Sy")) {
|
|
|
+ var ids= Gson().fromJson<ArrayList<String>>(message.toId,type)
|
|
|
+ equipInSpaceSync.equipInSpaceCreate(message,"MechInArch","Sy2Sp",ids)
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
"Eq2Bd" -> {
|