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
c0159622
Commit
c0159622
authored
Oct 11, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改月发电量值
parent
92860f4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
PowerGenerationImpl.java
...ot/module/jxiop/biz/service/impl/PowerGenerationImpl.java
+20
-5
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/PowerGenerationImpl.java
View file @
c0159622
...
...
@@ -88,16 +88,28 @@ public class PowerGenerationImpl {
//"日发电量"
if
(
"日发电量"
.
equals
(
value
)){
//"日发电量"
value
=
CommonConstans
.
taiHeGenIndica
torDay
;
flags
=
CommonConstans
.
pvGenPoweActor
*
CommonConstans
.
pvGenPoweAc
torDay
;
}
else
if
(
"月发电量"
.
equals
(
value
)){
//"月发电量"
value
=
CommonConstans
.
taiHeGenIndicatorMonth
;
flags
=
CommonConstans
.
pvGenPoweActorYear
;
}
else
{
//"年发电量"
value
=
CommonConstans
.
taiHeGenIndica
torYear
;
flags
=
CommonConstans
.
pvGenPoweAc
torYear
;
}
indexDto
=
indicatorDataMapper
.
selectlastgf
(
value
,
stationCacheInfoDto
.
getBoosterGatewayId
(),
startTime
,
endTime
);
//indexDto= this.getlastgf(gatewayId,value,datyvalue);
// if("日发电量".equals(value)){
// //"日发电量"
// // value= CommonConstans.taiHeGenIndicatorDay;
// }else if("月发电量".equals(value)){
// //"月发电量"
// value= CommonConstans.taiHeGenIndicatorMonth;
// }else{
// //"年发电量"
// value= CommonConstans.taiHeGenIndicatorYear;
// }
indexDto
=
indicatorDataMapper
.
selectlastgf
(
value
,
stationCacheInfoDto
.
getFanGatewayId
(),
startTime
,
endTime
);
// //indexDto= this.getlastgf(gatewayId,value,datyvalue);
}
SimpleDateFormat
myFmt2
=
new
SimpleDateFormat
(
dateFormat
);
...
...
@@ -179,6 +191,7 @@ public class PowerGenerationImpl {
List
<
ESMoonPowerGeneration
>
list
=
new
ArrayList
<>();
if
(
indexDto
!=
null
&&!
indexDto
.
isEmpty
()){
for
(
IndicatorData
dto
:
indexDto
)
{
double
value
=
dto
.
getValueF
()!=
null
?(
double
)
dto
.
getValueF
():
0.0
;
if
(
flags
!=
null
){
...
...
@@ -201,6 +214,8 @@ public class PowerGenerationImpl {
year
);
list
.
add
(
moonPowerGeneration
);
}
}
return
list
;
...
...
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