Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
李苗
/
Vion-DevOps
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0d19870f
authored
Nov 07, 2024
by
HlQ
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[add] 添加广场店铺进出差异异常和数据波动异常指标
1 parent
fd9f7e31
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
src/main/java/vion/event/mqtt/MqttClientMessageListener.java
src/main/java/vion/event/mqtt/MqttClientMessageListener.java
View file @
0d19870
...
@@ -72,6 +72,12 @@ public class MqttClientMessageListener {
...
@@ -72,6 +72,12 @@ public class MqttClientMessageListener {
case
MALL_INOUT_DIFF:
case
MALL_INOUT_DIFF:
handleMallInoutDiff
(
jsonObj
.
toString
());
handleMallInoutDiff
(
jsonObj
.
toString
());
break
;
break
;
case
MALL_SHOP_INOUT_DIFF:
handleMallShopInoutDiff
(
jsonObj
.
toString
());
break
;
case
MALL_DATA_UNDULATE:
handleMallDataUndulate
(
jsonObj
.
toString
());
break
;
// endregion
// endregion
default
:
default
:
log
.
info
(
"未定义的消息类型:{}, payload:{}"
,
type
,
jsonObj
);
log
.
info
(
"未定义的消息类型:{}, payload:{}"
,
type
,
jsonObj
);
...
@@ -190,6 +196,26 @@ public class MqttClientMessageListener {
...
@@ -190,6 +196,26 @@ public class MqttClientMessageListener {
EventRecord
eventRecord
=
JsonUtil
.
parseObject
(
payloadStr
,
EventRecord
.
class
);
EventRecord
eventRecord
=
JsonUtil
.
parseObject
(
payloadStr
,
EventRecord
.
class
);
recordService
.
save
(
eventRecord
);
recordService
.
save
(
eventRecord
);
}
}
/**
* 广场店铺进出差异异常
*
* @param payloadStr 事件记录
*/
private
void
handleMallShopInoutDiff
(
String
payloadStr
)
{
EventRecord
eventRecord
=
JsonUtil
.
parseObject
(
payloadStr
,
EventRecord
.
class
);
recordService
.
save
(
eventRecord
);
}
/**
* 广场数据波动异常
*
* @param payloadStr 事件记录
*/
private
void
handleMallDataUndulate
(
String
payloadStr
)
{
EventRecord
eventRecord
=
JsonUtil
.
parseObject
(
payloadStr
,
EventRecord
.
class
);
recordService
.
save
(
eventRecord
);
}
// endregion
// endregion
}
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment