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
cd6c5850
Commit
cd6c5850
authored
Oct 16, 2023
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
717cac69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
56 deletions
+52
-56
HealthStatusIndicatorServiceImpl.java
...op/biz/service/impl/HealthStatusIndicatorServiceImpl.java
+52
-56
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/HealthStatusIndicatorServiceImpl.java
View file @
cd6c5850
...
...
@@ -144,19 +144,18 @@ public class HealthStatusIndicatorServiceImpl {
String
content
=
""
;
String
num
=
""
;
content
=
healthValueMinCount
*
10
+
"分钟"
;
if
(
riskNum
>=
healthValueMinCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_risk_minute","risk");
level
=
"危险"
;
num
=
""
+
healthValueRisk
;
if
(
noticeNum
>=
healthValueMinCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_notice_minute","notice");
level
=
"注意"
;
num
=
""
+
healthValueNotice
;
}
else
if
(
warnNum
>=
healthValueMinCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_warn_minute","warn");
level
=
"警告"
;
num
=
""
+
healthValueWarn
;
}
else
if
(
notice
Num
>=
healthValueMinCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_notice_minute","notice
");
level
=
"
注意
"
;
num
=
""
+
healthValue
Notice
;
}
else
if
(
risk
Num
>=
healthValueMinCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_risk_minute","risk
");
level
=
"
危险
"
;
num
=
""
+
healthValue
Risk
;
}
//库里若已存在该测点预警 不生成重复的 若新生预警等级高于历史 则生成
LambdaQueryWrapper
<
IdxBizPvWarningRecord
>
query
=
new
LambdaQueryWrapper
<>();
...
...
@@ -273,20 +272,20 @@ public class HealthStatusIndicatorServiceImpl {
String
content
=
""
;
String
num
=
""
;
content
=
healthValueHourCount
+
"小时"
;
if
(
riskNum
>=
healthValueHourCount
){
level
=
"危险"
;
num
=
""
+
healthValueRisk
;
if
(
noticeNum
>=
healthValueHourCount
){
level
=
"注意"
;
num
=
""
+
healthValueNotice
;
}
else
if
(
warnNum
>=
healthValueHourCount
){
level
=
"警告"
;
num
=
""
+
healthValueWarn
;
}
else
if
(
noticeNum
>=
healthValueHourCount
){
level
=
"注意"
;
num
=
""
+
healthValueNotice
;
}
else
if
(
riskNum
>=
healthValueHourCount
){
level
=
"危险"
;
num
=
""
+
healthValueRisk
;
}
//库里若已存在该测点预警 不生成重复的 若新生预警等级高于历史 则生成
LambdaQueryWrapper
<
IdxBizPvWarningRecord
>
query
=
new
LambdaQueryWrapper
<>();
...
...
@@ -401,18 +400,18 @@ public class HealthStatusIndicatorServiceImpl {
String
content
=
""
;
String
num
=
""
;
content
=
healthValueDayCount
+
"天"
;
if
(
risk
Num
>=
healthValueDayCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_risk_day","risk
");
level
=
"
危险
"
;
num
=
""
+
healthValue
Risk
;
if
(
notice
Num
>=
healthValueDayCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_notice_day","notice
");
level
=
"
注意
"
;
num
=
""
+
healthValue
Notice
;
}
else
if
(
warnNum
>=
healthValueDayCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_warn_day","warn");
level
=
"警告"
;
num
=
""
+
healthValueWarn
;
}
else
if
(
notice
Num
>=
healthValueDayCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_notice_day","notice
");
level
=
"
注意
"
;
num
=
""
+
healthValue
Notice
;
}
else
if
(
risk
Num
>=
healthValueDayCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_risk_day","risk
");
level
=
"
危险
"
;
num
=
""
+
healthValue
Risk
;
}
//库里若已存在该测点预警 不生成重复的 若新生预警等级高于历史 则生成
LambdaQueryWrapper
<
IdxBizPvWarningRecord
>
query
=
new
LambdaQueryWrapper
<>();
...
...
@@ -530,20 +529,20 @@ public class HealthStatusIndicatorServiceImpl {
String
content
=
""
;
String
num
=
""
;
content
=
healthValueMinCount
*
10
+
"分钟"
;
if
(
riskNum
>=
healthValueMinCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_risk_minute","risk");
level
=
"危险"
;
num
=
""
+
healthValueRisk
;
}
else
if
(
warnNum
>=
healthValueMinCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_warn_minute","warn");
level
=
"警告"
;
num
=
""
+
healthValueWarn
;
}
else
if
(
noticeNum
>=
healthValueMinCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_notice_minute","notice");
if
(
noticeNum
>=
healthValueMinCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_notice_day","notice");
level
=
"注意"
;
num
=
""
+
healthValueNotice
;
}
else
if
(
warnNum
>=
healthValueMinCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_warn_day","warn");
level
=
"警告"
;
num
=
""
+
healthValueWarn
;
}
else
if
(
riskNum
>=
healthValueMinCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_risk_day","risk");
level
=
"危险"
;
num
=
""
+
healthValueRisk
;
}
//库里若已存在该测点预警 不生成重复的 若新生预警等级高于历史 则生成
LambdaQueryWrapper
<
IdxBizFanWarningRecord
>
query
=
new
LambdaQueryWrapper
<>();
query
.
eq
(
IdxBizFanWarningRecord:
:
getAnalysisPointId
,
idxBizFanHealthIndices
.
get
(
0
).
getAnalysisObjSeq
());
...
...
@@ -661,20 +660,16 @@ public class HealthStatusIndicatorServiceImpl {
String
content
=
""
;
String
num
=
""
;
content
=
healthValueHourCount
+
"小时"
;
if
(
riskNum
>=
healthValueHourCount
){
level
=
"危险"
;
num
=
""
+
healthValueRisk
;
if
(
noticeNum
>=
healthValueHourCount
){
level
=
"注意"
;
num
=
""
+
healthValueNotice
;
}
else
if
(
warnNum
>=
healthValueHourCount
){
level
=
"警告"
;
num
=
""
+
healthValueWarn
;
}
else
if
(
noticeNum
>=
healthValueHourCount
){
level
=
"注意"
;
num
=
""
+
healthValueNotice
;
}
else
if
(
riskNum
>=
healthValueHourCount
){
level
=
"危险"
;
num
=
""
+
healthValueRisk
;
}
LambdaQueryWrapper
<
IdxBizFanWarningRecord
>
query
=
new
LambdaQueryWrapper
<>();
query
.
eq
(
IdxBizFanWarningRecord:
:
getAnalysisPointId
,
idxBizFanHealthIndices
.
get
(
0
).
getAnalysisObjSeq
());
...
...
@@ -792,18 +787,19 @@ public class HealthStatusIndicatorServiceImpl {
String
content
=
""
;
String
num
=
""
;
content
=
healthValueDayCount
+
"天"
;
if
(
riskNum
>=
healthValueDayCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_risk_day","risk");
level
=
"危险"
;
num
=
""
+
healthValueRisk
;
}
else
if
(
warnNum
>=
healthValueDayCount
){
if
(
noticeNum
>=
healthValueDayCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_notice_day","notice");
level
=
"注意"
;
num
=
""
+
healthValueNotice
;
}
else
if
(
warnNum
>=
healthValueDayCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_warn_day","warn");
level
=
"警告"
;
num
=
""
+
healthValueWarn
;
}
else
if
(
notice
Num
>=
healthValueDayCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_notice_day","notice
");
level
=
"
注意
"
;
num
=
""
+
healthValue
Notice
;
}
else
if
(
risk
Num
>=
healthValueDayCount
){
// redisUtils.set(gateWayId+"_"+address+"_health_risk_day","risk
");
level
=
"
危险
"
;
num
=
""
+
healthValue
Risk
;
}
LambdaQueryWrapper
<
IdxBizFanWarningRecord
>
query
=
new
LambdaQueryWrapper
<>();
...
...
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