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
c1b4355d
Commit
c1b4355d
authored
Oct 16, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
143767ce
60f4af84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+17
-5
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 @
c1b4355d
...
...
@@ -567,7 +567,8 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
List
<
String
>
windSpeeds
=
new
ArrayList
<>();
List
<
String
>
activePowers
=
new
ArrayList
<>();
List
<
String
>
axisData
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
indicatorDataListWindSpeed
.
size
();
i
++)
{
Integer
size
=
indicatorDataListWindSpeed
.
size
()>
indicatorDataListActivePower
.
size
()
?
indicatorDataListActivePower
.
size
():
indicatorDataListWindSpeed
.
size
();
for
(
int
i
=
0
;
i
<
size
;
i
++)
{
windSpeeds
.
add
(
indicatorDataListWindSpeed
.
get
(
i
).
getValue
());
activePowers
.
add
(
indicatorDataListActivePower
.
get
(
i
).
getValue
());
axisData
.
add
(
DateUtil
.
format
(
indicatorDataListWindSpeed
.
get
(
i
).
getCreatedTime
(),
"HH:mm"
));
...
...
@@ -2138,7 +2139,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
}
public
ResultsData
getDeaviAtionRate
(
String
gatewayId
,
String
zz
,
String
nbq
,
String
hlx
)
{
public
ResultsData
getDeaviAtionRate
(
String
gatewayId
,
String
zz
,
String
nbq
,
String
hlx
)
{
ArrayList
<
Map
<
String
,
Object
>>
resultList
=
new
ArrayList
<>();
Map
<
String
,
List
<
String
>>
queryConditon
=
new
HashMap
<>();
queryConditon
.
put
(
CommonConstans
.
QueryStringGateWayId
,
Arrays
.
asList
(
gatewayId
));
...
...
@@ -2174,12 +2175,23 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
if
(
c
<
0
)
{
c
=
-
c
;
}
double
ls
v
=
c
/
avageValue
;
lsv
=
Double
.
valueOf
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
ls
v
));
resultMap
.
put
(
"
lsv"
,
ls
v
);
double
pc
v
=
c
/
avageValue
;
pcv
=
Double
.
valueOf
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
pc
v
));
resultMap
.
put
(
"
pcv"
,
pc
v
);
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
);
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