Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
Project
Project
Details
Activity
Releases
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
周健威
rs-cloud-platform
Commits
2f4bdc88
Commit
2f4bdc88
authored
Dec 31, 2021
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
7a1caf44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
36 deletions
+3
-36
CoverScheduleTask.java
.../upyuns/platform/rs/datacenter/job/CoverScheduleTask.java
+3
-36
No files found.
rs-datacenter/rs-datacenter-server/src/main/java/com/upyuns/platform/rs/datacenter/job/CoverScheduleTask.java
View file @
2f4bdc88
...
@@ -51,44 +51,11 @@ public class CoverScheduleTask {
...
@@ -51,44 +51,11 @@ public class CoverScheduleTask {
@Autowired
@Autowired
RscpAreaInfoBiz
rscpAreaInfoBiz
;
RscpAreaInfoBiz
rscpAreaInfoBiz
;
//定时按月份统计覆盖率
//定时按月份统计覆盖率(每天凌晨2:00)
//@Scheduled(cron = "0 0 2 * * ?")
@Scheduled
(
cron
=
"0 0 2 * * ?"
)
//或直接指定时间间隔,例如:5秒
//@Scheduled(fixedRate=5000)
//@Scheduled(fixedRate=5000)
public
void
configureTasks
()
{
public
void
configureTasks
()
{
//定时统计覆盖率数据
//定时统计覆盖率数据
//查询未处理覆盖率影像最早时间和最晚时间
rscpImageCoverBiz
.
coverTask
();
// MaxMinVO vo = rscpImageDataTotalBiz.coverStatisticsMaxMin();
// if(null == vo.getMaxTime()) {
// log.info("无需更新");
// return;
// }
}
private
void
insertPart
(
int
sort
,
String
satelliteType
,
Integer
countAll
,
int
type
)
{
insertPart
(
sort
,
satelliteType
,
countAll
,
type
,
null
);
}
private
void
insertPart
(
int
sort
,
String
satelliteType
,
Integer
countAll
,
int
type
,
String
year
)
{
RscpImageStatistics
rscpImageStatisticsAll
=
new
RscpImageStatistics
();
rscpImageStatisticsAll
.
setName
(
satelliteType
);
rscpImageStatisticsAll
.
setNum
(
countAll
);
rscpImageStatisticsAll
.
setSort
(
sort
);
rscpImageStatisticsAll
.
setType
(
type
);
rscpImageStatisticsAll
.
setDateyear
(
Integer
.
valueOf
(
year
));
rscpImageStatisticsBiz
.
insertSelective
(
rscpImageStatisticsAll
);
}
private
void
yearInsert
(
String
year
,
String
satelliteType
,
Integer
sort
)
{
Integer
countYear
=
rscpImageDataTotalBiz
.
selectCountByWeekend
(
w
->
{
w
.
andEqualTo
(
RscpImageDataTotal:
:
getImageSatelliteType
,
satelliteType
);
w
.
andEqualTo
(
RscpImageDataTotal:
:
getImageYear
,
year
);
return
w
;
});
//添加
insertPart
(
sort
,
satelliteType
,
countYear
,
RscpImageStatistics
.
TYPE_YEAR
,
year
);
}
}
}
}
\ No newline at end of file
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