Commit 0e0d8929 by HlQ

[add] 添加广场外围入口数据波动异常指标

1 parent 0d19870f
......@@ -78,6 +78,9 @@ public class MqttClientMessageListener {
case MALL_DATA_UNDULATE:
handleMallDataUndulate(jsonObj.toString());
break;
case MALL_GATE_DATA_UNDULATE:
handleMallGateDataUndulate(jsonObj.toString());
break;
// endregion
default:
log.info("未定义的消息类型:{}, payload:{}", type, jsonObj);
......@@ -144,6 +147,7 @@ public class MqttClientMessageListener {
}
// region store 事件
/**
* 门店人数波动异常
*
......@@ -187,6 +191,7 @@ public class MqttClientMessageListener {
// endregion
// region mall 事件
/**
* 广场进出客流差异异常
*
......@@ -216,6 +221,16 @@ public class MqttClientMessageListener {
EventRecord eventRecord = JsonUtil.parseObject(payloadStr, EventRecord.class);
recordService.save(eventRecord);
}
/**
* 广场外围入口数据波动异常
*
* @param payloadStr 事件记录
*/
private void handleMallGateDataUndulate(String payloadStr) {
EventRecord eventRecord = JsonUtil.parseObject(payloadStr, EventRecord.class);
recordService.save(eventRecord);
}
// endregion
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!