Ver código fonte

fix(cockpit): 历史预警事件类型改用预警类型码

Kazerin 2 dias atrás
pai
commit
e4e90680e7

+ 2 - 1
pipe-network-service/zksy-system/src/main/java/com/zksy/cockpit/event/BusinessCockpitEventAdapter.java

@@ -448,7 +448,8 @@ public class BusinessCockpitEventAdapter {
                     trimToNull(warning.getWarningNo()),
                     level(warning.getWarningLevel()),
                     offsetTime(warning.getPublishTime()),
-                    typeCode(warning.getDeviceCode(), facts),
+                    // 历史行的 EVENT_TYPE 与当前事件同口径:预警类型码(不是设备类型码)。
+                    trimToNull(warning.getWarningType()),
                     trimToNull(warning.getDeviceCode()),
                     trimToNull(warning.getStatus()),
                     firstNonBlank(warning.getDeviceName(), deviceName(warning.getDeviceCode(), facts)),