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
130f3083
Commit
130f3083
authored
Oct 10, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改日,发电量数据
parent
74808415
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
PowerGenerationImpl.java
...ot/module/jxiop/biz/service/impl/PowerGenerationImpl.java
+8
-2
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 @
130f3083
...
...
@@ -178,6 +178,9 @@ public class PowerGenerationImpl {
}
public
List
<
ESMoonPowerGeneration
>
getESMoonPowerGeneration
(
StationCacheInfoDto
stationCacheInfoDto
,
List
<
IndicatorData
>
indexDto
,
String
daty
,
String
day
,
String
year
,
Double
flags
){
List
<
ESMoonPowerGeneration
>
list
=
new
ArrayList
<>();
SimpleDateFormat
myFmt2
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
Date
now
=
new
Date
();
String
datynew
=
myFmt2
.
format
(
now
);
if
(
indexDto
!=
null
&&!
indexDto
.
isEmpty
()){
for
(
IndicatorData
dto
:
indexDto
)
{
double
value
=
dto
.
getValueF
()!=
null
?(
double
)
dto
.
getValueF
():
0.0
;
...
...
@@ -185,7 +188,7 @@ public class PowerGenerationImpl {
value
=
value
*
flags
;
}
ESMoonPowerGeneration
moonPowerGeneration
=
new
ESMoonPowerGeneration
(
daty
+
"_"
+
dto
.
getAddress
(),
daty
new
+
"_"
+
dto
.
getAddress
(),
stationCacheInfoDto
.
getStationId
(),
stationCacheInfoDto
.
getStationName
(),
stationCacheInfoDto
.
getStationType
(),
...
...
@@ -207,6 +210,9 @@ public class PowerGenerationImpl {
}
public
List
<
ESYearPowerGeneration
>
getESYearPowerGeneration
(
StationCacheInfoDto
stationCacheInfoDto
,
List
<
IndicatorData
>
indexDto
,
String
daty
,
String
day
,
Double
flags
){
List
<
ESYearPowerGeneration
>
list
=
new
ArrayList
<>();
SimpleDateFormat
myFmt2
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
Date
now
=
new
Date
();
String
datynew
=
myFmt2
.
format
(
now
);
if
(
indexDto
!=
null
&&!
indexDto
.
isEmpty
()){
for
(
IndicatorData
dto
:
indexDto
)
{
double
value
=
dto
.
getValueF
()!=
null
?(
double
)
dto
.
getValueF
():
0.0
;
...
...
@@ -214,7 +220,7 @@ public class PowerGenerationImpl {
value
=
value
*
flags
;
}
ESYearPowerGeneration
yearPowerGeneration
=
new
ESYearPowerGeneration
(
daty
+
"_"
+
dto
.
getAddress
(),
daty
new
+
"_"
+
dto
.
getAddress
(),
stationCacheInfoDto
.
getStationId
(),
stationCacheInfoDto
.
getStationName
(),
stationCacheInfoDto
.
getStationType
(),
...
...
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