Procházet zdrojové kódy

***********************WX*****************************
关系调整

张维新 před 4 roky
rodič
revize
5fb0469340

+ 37 - 0
datasyn/src/main/kotlin/com/persagy/server/syn/jms/DataCenterSync.kt

@@ -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" -> {