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
81228345
Commit
81228345
authored
Jul 15, 2024
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改采集报错
parent
eac01e5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
SunlightServiceImpl.java
...i/householdapi/face/service/impl/SunlightServiceImpl.java
+11
-5
No files found.
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/SunlightServiceImpl.java
View file @
81228345
...
...
@@ -347,8 +347,8 @@ public class SunlightServiceImpl implements SunlightService {
String
today
=
DateUtil
.
today
();
String
hour
=
new
Date
().
getHours
()
+
":00"
;
HYGFJPDayPower
hygfjpDayPower
=
hygfjpDayPowerMapper
.
selectOne
(
new
QueryWrapper
<
HYGFJPDayPower
>().
eq
(
"third_station_id"
,
sunlightDto
.
getPs_id
().
toString
())
HYGFJPDayPower
hygfjpDayPower
=
hygfjpDayPowerMapper
.
selectOne
(
new
QueryWrapper
<
HYGFJPDayPower
>().
eq
(
"third_station_id"
,
sunlightDto
.
getPs_id
().
toString
())
.
eq
(
"year_month_day"
,
today
).
eq
(
"hour"
,
hour
));
if
(
ObjectUtils
.
isEmpty
(
hygfjpDayPower
))
{
hygfjpDayPower
=
new
HYGFJPDayPower
();
...
...
@@ -417,9 +417,13 @@ public class SunlightServiceImpl implements SunlightService {
jpStationMapper
.
insert
(
jpStation
);
}
this
.
setJpInverte
(
listd
,
jpStation
,
listdtx
);
if
(
listd
!=
null
)
{
this
.
setJpInverte
(
listd
,
jpStation
,
listdtx
);
}
this
.
collectorDetail
(
listd
,
jpStation
);
if
(
listd
!=
null
)
{
this
.
collectorDetail
(
listd
,
jpStation
);
}
// 电站报表
// 户用场站日发电量
...
...
@@ -1059,10 +1063,12 @@ public class SunlightServiceImpl implements SunlightService {
try
{
TimeUnit
.
MINUTES
.
sleep
(
1
);
hygfjpInverterWarn
.
setCreatedTime
(
System
.
currentTimeMillis
());
hygfjpInverterWarnMapper
.
insert
(
hygfjpInverterWarn
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
hygfjpInverterWarnMapper
.
insert
(
hygfjpInverterWarn
);
}
hygfjpInverterWarnMapper
.
insert
(
hygfjpInverterWarn
);
}
}
}
...
...
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