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
e80cdb4e
Commit
e80cdb4e
authored
Apr 12, 2024
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修该固德威采集
parent
1c52d2b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
GoodWeDataAcquisitionServiceImpl.java
...i/face/service/impl/GoodWeDataAcquisitionServiceImpl.java
+8
-0
No files found.
amos-boot-data/amos-boot-data-housepvapi/src/main/java/com/yeejoin/amos/api/householdapi/face/service/impl/GoodWeDataAcquisitionServiceImpl.java
View file @
e80cdb4e
...
...
@@ -287,6 +287,7 @@ public class GoodWeDataAcquisitionServiceImpl implements GoodWeDataAcquisitionSe
}
@Override
@Scheduled
(
cron
=
"${dataRequstScheduled.GoodWe}"
)
public
void
stationDetail
()
{
List
<
String
>
stationIds
=
goodWeStationMonitorListMapper
.
getStationIds
();
stationIds
.
forEach
(
stationId
->
{
...
...
@@ -316,6 +317,7 @@ public class GoodWeDataAcquisitionServiceImpl implements GoodWeDataAcquisitionSe
}
@Override
@Scheduled
(
cron
=
"${dataRequstScheduled.GoodWe}"
)
public
void
stationMonthGen
()
{
List
<
String
>
stationIds
=
goodWeStationMonitorListMapper
.
getStationIds
();
stationIds
.
forEach
(
stationId
->
{
...
...
@@ -340,6 +342,7 @@ public class GoodWeDataAcquisitionServiceImpl implements GoodWeDataAcquisitionSe
}
@Override
@Scheduled
(
cron
=
"${dataRequstScheduled.GoodWe}"
)
public
void
stationYearGen
()
{
List
<
String
>
stationIds
=
goodWeStationMonitorListMapper
.
getStationIds
();
stationIds
.
forEach
(
stationId
->
{
...
...
@@ -375,6 +378,7 @@ public class GoodWeDataAcquisitionServiceImpl implements GoodWeDataAcquisitionSe
}
@Override
@Scheduled
(
cron
=
"${dataRequstScheduled.GoodWe}"
)
public
void
inverterList
()
{
List
<
String
>
stationIds
=
goodWeStationMonitorListMapper
.
getStationIds
();
stationIds
.
stream
().
forEach
(
stationId
->
{
...
...
@@ -413,6 +417,7 @@ public class GoodWeDataAcquisitionServiceImpl implements GoodWeDataAcquisitionSe
}
@Override
@Scheduled
(
cron
=
"${dataRequstScheduled.GoodWe}"
)
public
void
inverterDetail
()
{
List
<
String
>
goodweSnList
=
jpInverterMapper
.
getGoodWeSnCodes
();
List
<
List
<
String
>>
splitList
=
Lists
.
partition
(
goodweSnList
,
50
);
...
...
@@ -686,6 +691,7 @@ public class GoodWeDataAcquisitionServiceImpl implements GoodWeDataAcquisitionSe
}
@Override
@Scheduled
(
cron
=
"${dataRequstScheduled.GoodWe}"
)
public
void
inverterMonthGen
()
{
List
<
String
>
sns
=
jpInverterMapper
.
getGoodWeSnCodes
()
;
String
currentMonth
=
DateUtil
.
format
(
new
Date
(),
"yyyyMM"
);
...
...
@@ -710,6 +716,7 @@ public class GoodWeDataAcquisitionServiceImpl implements GoodWeDataAcquisitionSe
}
@Override
@Scheduled
(
cron
=
"${dataRequstScheduled.GoodWe}"
)
public
void
inverterYearGen
()
{
String
currentYear
=
DateUtil
.
format
(
new
Date
(),
"yyyy"
);
List
<
String
>
sns
=
jpInverterMapper
.
getGoodWeSnCodes
()
;
...
...
@@ -734,6 +741,7 @@ public class GoodWeDataAcquisitionServiceImpl implements GoodWeDataAcquisitionSe
}
@Override
@Scheduled
(
cron
=
"${dataRequstScheduled.GoodWe}"
)
public
void
inverAlramInfo
()
{
HashMap
<
String
,
Object
>
requestInfo
=
new
HashMap
<>();
String
today
=
DateUtil
.
today
();
...
...
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