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
d2176594
Commit
d2176594
authored
Oct 16, 2023
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改偏差率问题
parent
216fc36f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+14
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-monitor-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
View file @
d2176594
...
@@ -2174,12 +2174,23 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
...
@@ -2174,12 +2174,23 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
if
(
c
<
0
)
{
if
(
c
<
0
)
{
c
=
-
c
;
c
=
-
c
;
}
}
double
ls
v
=
c
/
avageValue
;
double
pc
v
=
c
/
avageValue
;
lsv
=
Double
.
valueOf
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
ls
v
));
pcv
=
Double
.
valueOf
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
pc
v
));
resultMap
.
put
(
"
lsv"
,
ls
v
);
resultMap
.
put
(
"
pcv"
,
pc
v
);
resultList
.
add
(
resultMap
);
resultList
.
add
(
resultMap
);
}
}
}
}
Collections
.
sort
(
resultList
,
new
Comparator
<
Map
<
String
,
Object
>>()
{
public
int
compare
(
Map
<
String
,
Object
>
o1
,
Map
<
String
,
Object
>
o2
)
{
String
str1
=
o1
.
get
(
"hlx"
).
toString
();
String
str2
=
o2
.
get
(
"hlx"
).
toString
();
//str1在前,str2在后,默认升序,这里Integer类型的也可以
return
str1
.
compareTo
(
str2
);
}
});
// 构建平台数据
// 构建平台数据
DataGridMock
DataGridMock
=
new
DataGridMock
(
0
,
resultList
.
size
(),
false
,
0
,
resultList
);
DataGridMock
DataGridMock
=
new
DataGridMock
(
0
,
resultList
.
size
(),
false
,
0
,
resultList
);
ColModel
colModelEventMovement
=
new
ColModel
(
"hlx"
,
"hlx"
,
"汇流箱"
,
"汇流箱"
,
"dataGrid"
,
"hlx"
);
ColModel
colModelEventMovement
=
new
ColModel
(
"hlx"
,
"hlx"
,
"汇流箱"
,
"汇流箱"
,
"dataGrid"
,
"hlx"
);
...
...
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