|
@@ -111,7 +111,7 @@ class DataCenterSync {
|
|
|
val type = object : TypeToken<ArrayList<String>>() {
|
|
|
}.type
|
|
|
for (message in messageList){
|
|
|
- logger.debug("消息 = ${message.toJson()}")
|
|
|
+ logger.debug("消息类型 = ${message.type}")
|
|
|
when(message.type){
|
|
|
"EquipinSpace" -> {
|
|
|
logger.debug("消息01 = ${message.toJson()}")
|
|
@@ -125,22 +125,24 @@ class DataCenterSync {
|
|
|
equipInSpaceSync.delRel(message,"MechInArch","Eq2Sp")
|
|
|
}
|
|
|
"13" -> { // 清除之前的关系,替换
|
|
|
-
|
|
|
if (message.fromId!!.startsWith("Eq")){
|
|
|
var ids= Gson().fromJson<ArrayList<String>>(message.toId,type)
|
|
|
equipInSpaceSync.addRelSuperposition(message,ids,"MechInArch","Eq2Sp")
|
|
|
|
|
|
- } else if (message.fromId!!.startsWith("Sq")) {
|
|
|
+ } else if (message.fromId!!.startsWith("Sp")) {
|
|
|
var ids= Gson().fromJson<ArrayList<String>>(message.toId,type)
|
|
|
|
|
|
equipInSpaceSync.addRelSuperpositionFan(message,ids,"MechInArch","Eq2Sp")
|
|
|
}
|
|
|
}
|
|
|
"14" -> { // 添加不替换
|
|
|
- if (message.fromId!!.startsWith("Sq")) {
|
|
|
+ if (message.fromId!!.startsWith("Sp")) {
|
|
|
var ids= Gson().fromJson<ArrayList<String>>(message.toId,type)
|
|
|
- logger.debug("数组= ${ids.toJson()}")
|
|
|
+ logger.debug("id= ${ids.toJson()}**************************")
|
|
|
equipInSpaceSync.equipInSpaceCreate(message,"MechInArch","Eq2Sp",ids)
|
|
|
+ }else {
|
|
|
+ logger.debug("没识别**************************")
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -227,6 +229,13 @@ class DataCenterSync {
|
|
|
"12" -> { // 删除关系
|
|
|
equipInSpaceSync.delRel(message, "MechForArch", "Eq2Sp")
|
|
|
}
|
|
|
+ "13" -> {
|
|
|
+
|
|
|
+ }
|
|
|
+ "14" -> {
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
"EquipinShaft" -> {
|