Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
a1f003b0
Commit
a1f003b0
authored
Oct 15, 2024
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
健康诊断告警,稳压泵单小时“启动”次数超过15次生成预警,不是启停次数
parent
4f7fae68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
MqttReceiveServiceImpl.java
...join/equipmanage/service/impl/MqttReceiveServiceImpl.java
+3
-4
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/MqttReceiveServiceImpl.java
View file @
a1f003b0
...
...
@@ -1166,9 +1166,8 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
// 处理每站消防储水量不少于4000m³ 预警问题
doWaterStationWarning
(
equipmentSpecificIndex
.
getBizOrgCode
(),
equipmentSpecificIndex
.
getBizOrgName
());
}
//稳压泵启停次数大于15次触发预警
if
(
iotDataVO
.
getKey
().
equalsIgnoreCase
(
FHS_PressurePump_Start
)
||
iotDataVO
.
getKey
().
equalsIgnoreCase
(
FHS_PressurePump_Stop
))
{
//稳压泵启动次数大于15次触发预警
if
(
iotDataVO
.
getKey
().
equalsIgnoreCase
(
FHS_PressurePump_Start
))
{
doPressurePumInfo
(
topicEntity
,
equipmentSpecificIndex
);
}
// 遥测数据生成告警事件、日志处理
...
...
@@ -1557,7 +1556,7 @@ public class MqttReceiveServiceImpl implements MqttReceiveService {
String
startDate
=
DateUtil
.
format
(
DateUtil
.
offsetHour
(
new
Date
(),
-
1
),
DatePattern
.
NORM_DATETIME_PATTERN
);
String
prefix
=
topicEntity
.
getIotCode
().
substring
(
0
,
8
);
String
suffix
=
topicEntity
.
getIotCode
().
substring
(
8
);
ResponseModel
<
Map
<
String
,
Integer
>>
mapResponseModel
=
iotFeign
.
queryIotDataNumByIndex
(
startDate
,
endDate
,
prefix
,
suffix
,
FHS_PressurePump_Start
+
","
+
FHS_PressurePump_Stop
,
"true"
);
ResponseModel
<
Map
<
String
,
Integer
>>
mapResponseModel
=
iotFeign
.
queryIotDataNumByIndex
(
startDate
,
endDate
,
prefix
,
suffix
,
FHS_PressurePump_Start
,
"true"
);
if
(
200
==
mapResponseModel
.
getStatus
())
{
Map
<
String
,
Integer
>
result
=
mapResponseModel
.
getResult
();
Integer
totalNum
=
result
.
get
(
"num"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment