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
c4418565
Commit
c4418565
authored
Oct 08, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改发电小时
parent
5ba6c06d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
MonitoringServiceImpl.java
.../module/jxiop/biz/service/impl/MonitoringServiceImpl.java
+3
-2
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/MonitoringServiceImpl.java
View file @
c4418565
...
@@ -881,7 +881,8 @@ public class MonitoringServiceImpl {
...
@@ -881,7 +881,8 @@ public class MonitoringServiceImpl {
//填写发电小时数
//填写发电小时数
String
finalIndicator
=
indicator
;
String
finalIndicator
=
indicator
;
stationBasicListAll
.
forEach
(
stationBasic
->
{
stationBasicListAll
.
forEach
(
stationBasic
->
{
Double
install
=
getStationCaPACITYL
(
stationBasic
.
getStationNumber
());
Double
install1
=
getStationCaPACITYL
(
stationBasic
.
getStationNumber
());
BigDecimal
gfInstall
=
new
BigDecimal
(
String
.
format
(
"%.2f"
,
install1
));
Double
total
=
0.00
;
Double
total
=
0.00
;
List
<
Map
<
String
,
Object
>>
mapListData
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
mapListData
=
new
ArrayList
<>();
if
(!
stationBasic
.
getStationType
().
equals
(
"FDZ"
))
{
if
(!
stationBasic
.
getStationType
().
equals
(
"FDZ"
))
{
...
@@ -906,7 +907,7 @@ public class MonitoringServiceImpl {
...
@@ -906,7 +907,7 @@ public class MonitoringServiceImpl {
List
<
ESEquipments
>
result
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
null
,
ESEquipments
.
class
);
List
<
ESEquipments
>
result
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
null
,
ESEquipments
.
class
);
total
=
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
finalIndicator
);
total
=
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
finalIndicator
);
}
}
stationBasic
.
setAddress
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
total
*
10
)
/
install
));
stationBasic
.
setAddress
(
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
(
total
*
10
)
/
gfInstall
.
doubleValue
()
));
if
(
stationBasic
.
getAddress
().
equals
(
"NaN"
))
{
if
(
stationBasic
.
getAddress
().
equals
(
"NaN"
))
{
stationBasic
.
setAddress
(
"0.00"
);
stationBasic
.
setAddress
(
"0.00"
);
}
}
...
...
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