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
006972ee
Commit
006972ee
authored
Oct 19, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.风机实时运行数据排序未生效问题处理
parent
867d8dde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
MonitorFanIndicatorImpl.java
...odule/jxiop/biz/service/impl/MonitorFanIndicatorImpl.java
+12
-11
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 @
006972ee
...
...
@@ -254,6 +254,17 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
likeMap
.
put
(
"systemType"
,
systemType
);
}
List
<
ESEquipments
>
result
=
commonServiceImpl
.
getListDataByCondtionsAndLike
(
queryCondtion
,
null
,
ESEquipments
.
class
,
likeMap
);
List
<
String
>
powerOther
=
Arrays
.
asList
(
"月发电量"
,
"年发电量"
,
"总发电量"
);
if
(!
stationBasic
.
getStationType
().
equals
(
"FDZ"
))
{
result
.
forEach
(
esEquipments
->
{
if
(
esEquipments
.
getEquipmentIndexName
().
equals
(
"日发电量"
))
{
esEquipments
.
setValue
(
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
Double
.
valueOf
(
esEquipments
.
getValue
())
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
));
}
if
(
powerOther
.
contains
(
esEquipments
.
getEquipmentIndexName
()))
{
esEquipments
.
setValue
(
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
Double
.
valueOf
(
esEquipments
.
getValue
())
*
CommonConstans
.
pvGenPoweActorCurrentData
));
}
});
}
result
.
stream
().
forEach
(
e
->
{
e
.
setValue
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
e
.
getValueF
()));
});
...
...
@@ -271,17 +282,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
.
skip
((
long
)
(
current
-
1
)
*
size
)
.
limit
(
size
)
.
collect
(
Collectors
.
toList
());
List
<
String
>
powerOther
=
Arrays
.
asList
(
"月发电量"
,
"年发电量"
,
"总发电量"
);
if
(!
stationBasic
.
getStationType
().
equals
(
"FDZ"
))
{
collect
.
forEach
(
esEquipments
->
{
if
(
esEquipments
.
getEquipmentIndexName
().
equals
(
"日发电量"
))
{
esEquipments
.
setValue
(
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
Double
.
valueOf
(
esEquipments
.
getValue
())
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
));
}
if
(
powerOther
.
contains
(
esEquipments
.
getEquipmentIndexName
()))
{
esEquipments
.
setValue
(
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
Double
.
valueOf
(
esEquipments
.
getValue
())
*
CommonConstans
.
pvGenPoweActorCurrentData
));
}
});
}
page
.
setTotal
(
result
.
size
());
page
.
setRecords
(
collect
);
return
page
;
...
...
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