浏览代码

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

张维新 4 年之前
父节点
当前提交
5fb0469340
共有 1 个文件被更改,包括 37 次插入0 次删除
  1. 37 0
      datasyn/src/main/kotlin/com/persagy/server/syn/jms/DataCenterSync.kt

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