Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
5a4cb052
Commit
5a4cb052
authored
Jan 02, 2025
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电站整体发电历史问题修复
parent
86c29321
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
HouseholdPvApiServiceImpl.java
...eholdapi/face/service/impl/HouseholdPvApiServiceImpl.java
+8
-0
SunlightServiceImpl.java
...i/householdapi/face/service/impl/SunlightServiceImpl.java
+5
-0
No files found.
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/HouseholdPvApiServiceImpl.java
View file @
5a4cb052
...
@@ -51,15 +51,23 @@ public class HouseholdPvApiServiceImpl extends BaseService<HouseholdPvApiDto, Ho
...
@@ -51,15 +51,23 @@ public class HouseholdPvApiServiceImpl extends BaseService<HouseholdPvApiDto, Ho
.
eq
(
"day_time"
,
DateUtil
.
format
(
new
Date
(),
"yyyy-MM-dd"
))
.
eq
(
"day_time"
,
DateUtil
.
format
(
new
Date
(),
"yyyy-MM-dd"
))
.
eq
(
"hour"
,
currentTime
)
.
eq
(
"hour"
,
currentTime
)
.
eq
(
"year_month"
,
DateUtil
.
format
(
new
Date
(),
"yyyy-MM"
)));
.
eq
(
"year_month"
,
DateUtil
.
format
(
new
Date
(),
"yyyy-MM"
)));
Long
createdTime
=
tdHYGFStationDayGenerate
.
getCreatedTime
();
boolean
flag
=
false
;
if
(
ObjectUtils
.
isEmpty
(
tdHYGFStationDayGenerate
))
{
if
(
ObjectUtils
.
isEmpty
(
tdHYGFStationDayGenerate
))
{
tdHYGFStationDayGenerate
=
new
TdHYGFStationDayGenerate
();
tdHYGFStationDayGenerate
=
new
TdHYGFStationDayGenerate
();
flag
=
true
;
}
}
BeanUtils
.
copyProperties
(
tdHYGFStationMonthGenerate
,
tdHYGFStationDayGenerate
);
BeanUtils
.
copyProperties
(
tdHYGFStationMonthGenerate
,
tdHYGFStationDayGenerate
);
tdHYGFStationDayGenerate
.
setHour
(
currentTime
);
tdHYGFStationDayGenerate
.
setHour
(
currentTime
);
if
(
tdHYGFStationDayGenerate
.
getStationState
().
equals
(
"离线"
)){
if
(
tdHYGFStationDayGenerate
.
getStationState
().
equals
(
"离线"
)){
tdHYGFStationDayGenerate
.
setGenerate
(
null
);
tdHYGFStationDayGenerate
.
setGenerate
(
null
);
}
}
if
(
flag
){
tdHYGFStationDayGenerate
.
setCreatedTime
(
System
.
currentTimeMillis
());
tdHYGFStationDayGenerate
.
setCreatedTime
(
System
.
currentTimeMillis
());
}
else
{
tdHYGFStationDayGenerate
.
setCreatedTime
(
createdTime
);
}
TdHYGFStationDayGenerateMapper
.
insert
(
tdHYGFStationDayGenerate
);
TdHYGFStationDayGenerateMapper
.
insert
(
tdHYGFStationDayGenerate
);
}
}
...
...
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/SunlightServiceImpl.java
View file @
5a4cb052
...
@@ -282,8 +282,13 @@ public class SunlightServiceImpl implements SunlightService {
...
@@ -282,8 +282,13 @@ public class SunlightServiceImpl implements SunlightService {
Map
<
String
,
String
>
map5
=
sunlightDto
.
getTotal_income
();
Map
<
String
,
String
>
map5
=
sunlightDto
.
getTotal_income
();
if
(
map5
!=
null
&&
map5
.
get
(
"unit"
)
!=
null
&&
!
map5
.
get
(
"unit"
).
isEmpty
()
if
(
map5
!=
null
&&
map5
.
get
(
"unit"
)
!=
null
&&
!
map5
.
get
(
"unit"
).
isEmpty
()
&&
!
"--"
.
equals
(
map5
.
get
(
"value"
)))
{
&&
!
"--"
.
equals
(
map5
.
get
(
"value"
)))
{
if
(!
map5
.
get
(
"unit"
).
equals
(
""
)){
jpStation
.
setCumulativeIncome
(
SunlightUtil
.
sy
.
get
(
String
.
valueOf
(
map5
.
get
(
"unit"
)))
jpStation
.
setCumulativeIncome
(
SunlightUtil
.
sy
.
get
(
String
.
valueOf
(
map5
.
get
(
"unit"
)))
*
Double
.
valueOf
(
String
.
valueOf
(
map5
.
get
(
"value"
))));
// 累计收益
*
Double
.
valueOf
(
String
.
valueOf
(
map5
.
get
(
"value"
))));
// 累计收益
}
else
{
jpStation
.
setCumulativeIncome
(
0.0
);
}
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
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