|
|
@ -37,6 +37,7 @@ public class DeviceMessageHandler { |
|
|
|
private final int EVENT_AI = 1; |
|
|
|
private final int EVENT_STATE = 1; |
|
|
|
private final int EVENTEND_STATE = 4; |
|
|
|
private final int VISIBILITY_LEVEL = 8; |
|
|
|
private final Logger logger = LoggerFactory.getLogger(this.getClass()); |
|
|
|
|
|
|
|
@Resource |
|
|
@ -168,8 +169,12 @@ public class DeviceMessageHandler { |
|
|
|
dcWarning.setWarningTime(new Date(captureTime)); |
|
|
|
// 信息来源
|
|
|
|
dcWarning.setWarningSource(WarningSourceEnum.VIDEO_AI.getCode()); |
|
|
|
|
|
|
|
// 事件主类型
|
|
|
|
dcWarning.setWarningType(data.getInteger("warningType")); |
|
|
|
if (data.getInteger("warningType") == VISIBILITY_LEVEL) { |
|
|
|
dcWarning.setWarningLevel(data.getInteger("visibilityLevel")); |
|
|
|
} |
|
|
|
|
|
|
|
String warningSubclass = data.getString("warningSubclass"); |
|
|
|
// 子类型
|
|
|
|