瀏覽代碼

调度器任务json修改

caiaf 4 年之前
父節點
當前提交
d6bdfa99f7

+ 11 - 0
scheduler/src/main/kotlin/cn/sagacloud/server/scheduler/pojo/ChannelHandlerContextWrapper.kt

@@ -90,6 +90,17 @@ class ChannelHandlerContextWrapper(val ctx: ChannelHandlerContext) { // 通信ha
                 toBeSent.param = param.toString()
             }
         }
+        var jsonInfo = JSONObject.parseObject(toBeSent.param)
+        jsonInfo["FloorServerUrl"] = toBeSent.floorServerUrl
+        jsonInfo["UseablePhaseName"] = toBeSent.useablePhaseName
+        jsonInfo["SagaSign"] = toBeSent.sagaSign
+        jsonInfo["CheckItems"] = toBeSent.checkItems
+        jsonInfo["FacilityParameters"] = toBeSent.facilityParameters
+        jsonInfo["SpaceParameters"] = toBeSent.spaceParameters
+        jsonInfo["RoomParameters"] = toBeSent.roomParameters
+        jsonInfo["MEPCurveParameters"] = toBeSent.mEPCurveParameters
+        jsonInfo["EquipComponentCode"] = toBeSent.equipComponentCode
+        toBeSent.param = jsonInfo.toString()
         return JSON.toJSONString(toBeSent)
     }