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
963ffa17
Commit
963ffa17
authored
Mar 05, 2024
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预警回溯时间坐标显示错误问题处理
parent
41e21754
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
AlarmInfoDetailServiceImpl.java
...le/jxiop/biz/service/impl/AlarmInfoDetailServiceImpl.java
+10
-10
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/AlarmInfoDetailServiceImpl.java
View file @
963ffa17
...
...
@@ -211,10 +211,10 @@ public class AlarmInfoDetailServiceImpl implements IAlarmInfoDetailService {
for
(
int
i
=
idxBizFanHealthIndexListSize
-
1
;
i
>=
0
;
i
--)
{
HashMap
<
String
,
String
>
alarmAbnormalityItem
=
new
HashMap
<>();
FanHealthIndex
idxBizFanHealthIndex
=
idxBizFanHealthIndexList
.
get
(
i
);
xDatas
.
add
(
idxBizFanHealthIndex
.
get
AnalysisTim
e
());
xDatas
.
add
(
idxBizFanHealthIndex
.
get
RecDat
e
());
yDatas
.
add
(
Double
.
valueOf
(
keepOneKeepDecimalPlace
(
idxBizFanHealthIndex
.
getHealthIndex
())));
alarmAbnormalityItem
.
put
(
"sort"
,
String
.
valueOf
(
i
));
alarmAbnormalityItem
.
put
(
"time"
,
idxBizFanHealthIndex
.
get
AnalysisTim
e
());
alarmAbnormalityItem
.
put
(
"time"
,
idxBizFanHealthIndex
.
get
RecDat
e
());
alarmAbnormalityItem
.
put
(
"abnormal"
,
keepOneKeepDecimalPlace
(
idxBizFanHealthIndex
.
getAnomaly
()));
alarmAbnormalityItem
.
put
(
"healthValue"
,
keepOneKeepDecimalPlace
(
idxBizFanHealthIndex
.
getHealthIndex
()));
alarmAbnormalityList
.
add
(
alarmAbnormalityItem
);
...
...
@@ -264,32 +264,32 @@ public class AlarmInfoDetailServiceImpl implements IAlarmInfoDetailService {
for
(
int
i
=
idxBizPvHealthIndexList
.
size
()
-
1
;
i
>=
0
;
i
--)
{
HashMap
<
String
,
String
>
alarmAbnormalityItem
=
new
HashMap
<>();
PvHealthIndex
idxBizPvHealthIndex
=
idxBizPvHealthIndexList
.
get
(
i
);
xDatas
.
add
(
idxBizPvHealthIndex
.
get
AnalysisTim
e
());
xDatas
.
add
(
idxBizPvHealthIndex
.
get
RecDat
e
());
yDatas
.
add
(
Double
.
valueOf
(
keepOneKeepDecimalPlace
(
idxBizPvHealthIndex
.
getHealthIndex
())));
alarmAbnormalityItem
.
put
(
"sort"
,
String
.
valueOf
(
i
));
alarmAbnormalityItem
.
put
(
"time"
,
idxBizPvHealthIndex
.
get
AnalysisTim
e
());
alarmAbnormalityItem
.
put
(
"time"
,
idxBizPvHealthIndex
.
get
RecDat
e
());
alarmAbnormalityItem
.
put
(
"abnormal"
,
keepOneKeepDecimalPlace
(
idxBizPvHealthIndex
.
getAnomaly
()));
alarmAbnormalityItem
.
put
(
"healthValue"
,
keepOneKeepDecimalPlace
(
idxBizPvHealthIndex
.
getHealthIndex
()));
if
(
idxBizPvHealthIndexListSize
>=
3
)
{
if
(
i
==
0
)
{
endTime
=
handlerDateStr
(
idxBizPvHealthIndex
.
get
AnalysisTim
e
(),
-
8
,
5
);
endTime
=
handlerDateStr
(
idxBizPvHealthIndex
.
get
RecDat
e
(),
-
8
,
5
);
}
if
(
i
==
2
)
{
startTime
=
handlerDateStr
(
idxBizPvHealthIndex
.
get
AnalysisTim
e
(),
-
8
,
-
5
);
startTime
=
handlerDateStr
(
idxBizPvHealthIndex
.
get
RecDat
e
(),
-
8
,
-
5
);
}
}
if
(
idxBizPvHealthIndexListSize
==
2
)
{
if
(
i
==
0
)
{
endTime
=
handlerDateStr
(
idxBizPvHealthIndex
.
get
AnalysisTim
e
(),
-
8
,
5
);
endTime
=
handlerDateStr
(
idxBizPvHealthIndex
.
get
RecDat
e
(),
-
8
,
5
);
}
if
(
i
==
1
)
{
startTime
=
handlerDateStr
(
idxBizPvHealthIndex
.
get
AnalysisTim
e
(),
-
8
,
-
5
);
startTime
=
handlerDateStr
(
idxBizPvHealthIndex
.
get
RecDat
e
(),
-
8
,
-
5
);
}
}
if
(
idxBizPvHealthIndexListSize
==
1
)
{
if
(
i
==
0
)
{
endTime
=
handlerDateStr
(
idxBizPvHealthIndex
.
get
AnalysisTim
e
(),
-
8
,
5
);
startTime
=
handlerDateStr
(
idxBizPvHealthIndex
.
get
AnalysisTim
e
(),
-
8
,
-
5
);
endTime
=
handlerDateStr
(
idxBizPvHealthIndex
.
get
RecDat
e
(),
-
8
,
5
);
startTime
=
handlerDateStr
(
idxBizPvHealthIndex
.
get
RecDat
e
(),
-
8
,
-
5
);
}
}
alarmAbnormalityList
.
add
(
alarmAbnormalityItem
);
...
...
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