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 a1f1718d
authored
Nov 07, 2024
by
HlQ
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[add] 添加广场膨胀系数异常指标
1 parent
b0f2e7df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
src/main/java/vion/event/mqtt/MqttClientMessageListener.java
src/main/java/vion/event/mqtt/MqttClientMessageListener.java
View file @
a1f1718
...
...
@@ -21,7 +21,6 @@ import java.util.List;
/**
* <b>/MS/receive</b> topic 监听事件处理
*
*/
@Service
@RequiredArgsConstructor
...
...
@@ -86,6 +85,9 @@ public class MqttClientMessageListener {
case
MALL_SHOP_DATA_UNDULATE:
handleMallShopDataUndulate
(
jsonObj
.
toString
());
break
;
case
MALL_DILATATION_UNDULATE:
handleMallDilatationUndulate
(
jsonObj
.
toString
());
break
;
// endregion
default
:
log
.
info
(
"未定义的消息类型:{}, payload:{}"
,
type
,
jsonObj
);
...
...
@@ -256,6 +258,16 @@ public class MqttClientMessageListener {
EventRecord
eventRecord
=
JsonUtil
.
parseObject
(
payloadStr
,
EventRecord
.
class
);
recordService
.
save
(
eventRecord
);
}
/**
* 广场膨胀系数异常
*
* @param payloadStr 事件记录
*/
private
void
handleMallDilatationUndulate
(
String
payloadStr
)
{
EventRecord
eventRecord
=
JsonUtil
.
parseObject
(
payloadStr
,
EventRecord
.
class
);
recordService
.
save
(
eventRecord
);
}
// 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