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
a953bde3
Commit
a953bde3
authored
Oct 07, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改发电量系数
parent
43b30bf5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
CommonConstans.java
.../amos/boot/module/jxiop/biz/constants/CommonConstans.java
+1
-0
MonitorFanIdxController.java
.../module/jxiop/biz/controller/MonitorFanIdxController.java
+2
-2
MonitoringServiceImpl.java
.../module/jxiop/biz/service/impl/MonitoringServiceImpl.java
+8
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/constants/CommonConstans.java
View file @
a953bde3
...
...
@@ -6,6 +6,7 @@ public class CommonConstans {
//光伏发电量系数
public
static
final
Double
pvGenPoweActor
=
0.00001
;
public
static
final
Double
pvGenPoweActorDay
=
0.1
;
public
static
final
Double
pvGenPoweActornew
=
0.0001
;
// 风电站:
// (日/月/年)发电量=场站所有风机(日/月/年)发电量总和
// 装机容量=场站所有风机装机容量总和
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/MonitorFanIdxController.java
View file @
a953bde3
...
...
@@ -941,10 +941,10 @@ public class MonitorFanIdxController extends BaseController {
dayMap
.
put
(
"value"
,
map
.
get
(
"日发电量"
)
==
null
?
0
:
String
.
format
(
"%.4f"
,
Double
.
parseDouble
(
map
.
get
(
"日发电量"
).
toString
())*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
));
monthMap
.
put
(
"name"
,
name
);
monthMap
.
put
(
"gateWayId"
,
stationBasic
.
getFanGatewayId
());
monthMap
.
put
(
"value"
,
map
.
get
(
"月发电量"
)
==
null
?
0
:
String
.
format
(
"%.4f"
,
Double
.
parseDouble
(
map
.
get
(
"月发电量"
).
toString
())*
CommonConstans
.
pvGenPoweActor
));
monthMap
.
put
(
"value"
,
map
.
get
(
"月发电量"
)
==
null
?
0
:
String
.
format
(
"%.4f"
,
Double
.
parseDouble
(
map
.
get
(
"月发电量"
).
toString
())*
CommonConstans
.
pvGenPoweActor
new
));
yearMap
.
put
(
"name"
,
name
);
yearMap
.
put
(
"gateWayId"
,
stationBasic
.
getFanGatewayId
());
yearMap
.
put
(
"value"
,
map
.
get
(
"年发电量"
)
==
null
?
0
:
String
.
format
(
"%.4f"
,
Double
.
parseDouble
(
map
.
get
(
"年发电量"
).
toString
())*
CommonConstans
.
pvGenPoweActor
));
yearMap
.
put
(
"value"
,
map
.
get
(
"年发电量"
)
==
null
?
0
:
String
.
format
(
"%.4f"
,
Double
.
parseDouble
(
map
.
get
(
"年发电量"
).
toString
())*
CommonConstans
.
pvGenPoweActor
new
));
datDataGF
.
add
(
dayMap
);
monthDataGF
.
add
(
monthMap
);
yearDataGF
.
add
(
yearMap
);
...
...
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 @
a953bde3
...
...
@@ -818,7 +818,14 @@ public class MonitoringServiceImpl {
shouldQueryCondtion
.
put
(
CommonConstans
.
QueryStringFrontMoudle
,
"逆变器"
);
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
;
if
(
finalIndicator
.
equals
(
"日发电量"
)){
total
=
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
finalIndicator
)
*
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweActorDay
;
}
else
{
total
=
commonServiceImpl
.
getSumByEquipmentIndxName
(
result
,
finalIndicator
)
*
CommonConstans
.
pvGenPoweActor
;
}
}
else
{
Map
<
String
,
List
<
String
>>
queryCondtion
=
new
HashMap
<>();
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