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
786458a1
Commit
786458a1
authored
Oct 07, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改发电量
parent
9561ed36
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
MonitoringServiceImpl.java
.../module/jxiop/biz/service/impl/MonitoringServiceImpl.java
+6
-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/MonitoringServiceImpl.java
View file @
786458a1
...
@@ -656,13 +656,13 @@ public class MonitoringServiceImpl {
...
@@ -656,13 +656,13 @@ public class MonitoringServiceImpl {
}
}
});
});
HashMap
<
String
,
String
>
dayHashMap
=
new
HashMap
<>();
HashMap
<
String
,
String
>
dayHashMap
=
new
HashMap
<>();
dayHashMap
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Two
decimalplaces
,
dailyPower
.
get
())
+
"万KWh"
);
dayHashMap
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Four
decimalplaces
,
dailyPower
.
get
())
+
"万KWh"
);
HashMap
<
String
,
String
>
monthHashMap
=
new
HashMap
<>();
HashMap
<
String
,
String
>
monthHashMap
=
new
HashMap
<>();
monthHashMap
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Two
decimalplaces
,
monthlyPower
.
get
())
+
"万KWh"
);
monthHashMap
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Four
decimalplaces
,
monthlyPower
.
get
())
+
"万KWh"
);
HashMap
<
String
,
String
>
annualHashMap
=
new
HashMap
<>();
HashMap
<
String
,
String
>
annualHashMap
=
new
HashMap
<>();
annualHashMap
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Two
decimalplaces
,
annualPower
.
get
())
+
"万KWh"
);
annualHashMap
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Four
decimalplaces
,
annualPower
.
get
())
+
"万KWh"
);
HashMap
<
String
,
String
>
totalHashMap
=
new
HashMap
<>();
HashMap
<
String
,
String
>
totalHashMap
=
new
HashMap
<>();
totalHashMap
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Two
decimalplaces
,
annualPower
.
get
())
+
"万KWh"
);
totalHashMap
.
put
(
"title"
,
String
.
format
(
CommonConstans
.
Four
decimalplaces
,
annualPower
.
get
())
+
"万KWh"
);
hashMapList
.
add
(
dayHashMap
);
hashMapList
.
add
(
dayHashMap
);
hashMapList
.
add
(
monthHashMap
);
hashMapList
.
add
(
monthHashMap
);
hashMapList
.
add
(
annualHashMap
);
hashMapList
.
add
(
annualHashMap
);
...
@@ -817,7 +817,8 @@ public class MonitoringServiceImpl {
...
@@ -817,7 +817,8 @@ public class MonitoringServiceImpl {
Map
<
String
,
String
>
shouldQueryCondtion
=
new
HashMap
<>();
Map
<
String
,
String
>
shouldQueryCondtion
=
new
HashMap
<>();
shouldQueryCondtion
.
put
(
CommonConstans
.
QueryStringFrontMoudle
,
"逆变器"
);
shouldQueryCondtion
.
put
(
CommonConstans
.
QueryStringFrontMoudle
,
"逆变器"
);
List
<
ESEquipments
>
result
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
null
,
ESEquipments
.
class
,
shouldQueryCondtion
);
List
<
ESEquipments
>
result
=
commonServiceImpl
.
getListDataByCondtions
(
queryCondtion
,
null
,
ESEquipments
.
class
,
shouldQueryCondtion
);
total
=
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
finalIndicator
)
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
;
// total = commonServiceImpl.getSumByEquipmentIndxName(result, finalIndicator) * CommonConstans.pvGenPoweActor * CommonConstans.pvGenPoweActorDay;
total
=
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
finalIndicator
)
*
CommonConstans
.
pvGenPoweActor
;
}
else
{
}
else
{
Map
<
String
,
List
<
String
>>
queryCondtion
=
new
HashMap
<>();
Map
<
String
,
List
<
String
>>
queryCondtion
=
new
HashMap
<>();
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
finalIndicator
));
queryCondtion
.
put
(
CommonConstans
.
QueryStringEquipmentIndexName
,
Arrays
.
asList
(
finalIndicator
));
...
...
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