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
45f21a16
Commit
45f21a16
authored
Oct 07, 2023
by
caotao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branches 'developer' and 'developer' of…
Merge branches 'developer' and 'developer' of
http://39.98.45.134:8090/moa/amos-boot-biz
into developer
parents
35af08af
a953bde3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
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
+7
-0
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 @
45f21a16
...
...
@@ -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 @
45f21a16
...
...
@@ -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 @
45f21a16
...
...
@@ -883,7 +883,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;
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