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
32d1551b
Commit
32d1551b
authored
Sep 28, 2023
by
caotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发电量数据精度丢失问题处理
parent
a6c6d782
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
MonitoringServiceImpl.java
.../module/jxiop/biz/service/impl/MonitoringServiceImpl.java
+7
-7
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 @
32d1551b
...
...
@@ -911,13 +911,13 @@ public class MonitoringServiceImpl {
powerOfAnnualGF
.
updateAndGet
(
v
->
v
+
keepFourdecimalPlaces
(
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
"年发电量"
)));
});
HashMap
<
String
,
String
>
stringHashMap4
=
new
HashMap
<>();
stringHashMap4
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
powerOfDayFD
.
get
())
+
"/"
+
String
.
format
(
CommonConstans
.
Two
decimalplaces
,
powerOfDayGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
));
stringHashMap4
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
powerOfDayFD
.
get
())
+
"/"
+
String
.
format
(
CommonConstans
.
Four
decimalplaces
,
powerOfDayGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
));
list1
.
add
(
stringHashMap4
);
HashMap
<
String
,
String
>
stringHashMap5
=
new
HashMap
<>();
stringHashMap5
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
powerOfMonthFD
.
get
())
+
"/"
+
String
.
format
(
CommonConstans
.
Two
decimalplaces
,
powerOfMonthGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
));
stringHashMap5
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
powerOfMonthFD
.
get
())
+
"/"
+
String
.
format
(
CommonConstans
.
Four
decimalplaces
,
powerOfMonthGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
));
list1
.
add
(
stringHashMap5
);
HashMap
<
String
,
String
>
stringHashMap6
=
new
HashMap
<>();
stringHashMap6
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
powerOfAnnualFD
.
get
())
+
"/"
+
String
.
format
(
CommonConstans
.
Two
decimalplaces
,
powerOfAnnualGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
));
stringHashMap6
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Fourdecimalplaces
,
powerOfAnnualFD
.
get
())
+
"/"
+
String
.
format
(
CommonConstans
.
Four
decimalplaces
,
powerOfAnnualGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
));
list1
.
add
(
stringHashMap6
);
HashMap
<
String
,
String
>
stringHashMap7
=
new
HashMap
<>();
stringHashMap7
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
powerOfAnnualFD
.
get
()
/
fdzValue
)
+
"/"
+
String
.
format
(
CommonConstans
.
Twodecimalplaces
,
powerOfAnnualGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
/
gfvalue
));
...
...
@@ -927,16 +927,16 @@ public class MonitoringServiceImpl {
list1
.
add
(
stringHashMap8
);
page1
.
setRecords
(
list1
);
HashMap
<
String
,
String
>
stringHashMap9
=
new
HashMap
<>();
stringHashMap9
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Two
decimalplaces
,
powerOfDayFD
.
get
()
+
(
powerOfDayGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
)));
stringHashMap9
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Four
decimalplaces
,
powerOfDayFD
.
get
()
+
(
powerOfDayGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
)));
list2
.
add
(
stringHashMap9
);
HashMap
<
String
,
String
>
stringHashMap10
=
new
HashMap
<>();
stringHashMap10
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Two
decimalplaces
,
powerOfMonthFD
.
get
()
+
powerOfMonthGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
));
stringHashMap10
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Four
decimalplaces
,
powerOfMonthFD
.
get
()
+
powerOfMonthGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
));
list2
.
add
(
stringHashMap10
);
HashMap
<
String
,
String
>
stringHashMap11
=
new
HashMap
<>();
stringHashMap11
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Two
decimalplaces
,
powerOfAnnualFD
.
get
()
+
powerOfAnnualGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
));
stringHashMap11
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Four
decimalplaces
,
powerOfAnnualFD
.
get
()
+
powerOfAnnualGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
));
list2
.
add
(
stringHashMap11
);
HashMap
<
String
,
String
>
stringHashMap12
=
new
HashMap
<>();
stringHashMap12
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Two
decimalplaces
,
(
powerOfAnnualFD
.
get
()
+
powerOfAnnualGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
)
/
yearValue
));
stringHashMap12
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Four
decimalplaces
,
(
powerOfAnnualFD
.
get
()
+
powerOfAnnualGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
)
/
yearValue
));
list2
.
add
(
stringHashMap12
);
page2
.
setRecords
(
list2
);
Double
totalAnnual
=
(
powerOfAnnualFD
.
get
()
+
powerOfAnnualGF
.
get
()
*
CommonConstans
.
pvGenPoweActor
);
...
...
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