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
efe11080
Commit
efe11080
authored
Oct 13, 2021
by
xixinzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改提交
parent
422decdb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
LatentDanerScheduled.java
...ejoin/amos/supervision/schedule/LatentDanerScheduled.java
+1
-1
PlanTaskJob.java
...n/java/com/yeejoin/amos/supervision/task/PlanTaskJob.java
+27
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/schedule/LatentDanerScheduled.java
View file @
efe11080
...
@@ -19,7 +19,7 @@ public class LatentDanerScheduled {
...
@@ -19,7 +19,7 @@ public class LatentDanerScheduled {
* 每1分钟执行一次:查询逾期的隐患,修改状态
* 每1分钟执行一次:查询逾期的隐患,修改状态
*/
*/
@Scheduled
(
cron
=
"0 0/1 * * * ?"
)
//
@Scheduled(cron = "0 0/1 * * * ?")
public
void
updateDangerStateOfOvertime
()
{
public
void
updateDangerStateOfOvertime
()
{
iLatentDangerService
.
updateDangerStateOfOvertime
();
iLatentDangerService
.
updateDangerStateOfOvertime
();
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/task/PlanTaskJob.java
0 → 100644
View file @
efe11080
package
com
.
yeejoin
.
amos
.
supervision
.
task
;
import
com.yeejoin.amos.supervision.business.service.intfc.IPlanTaskService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
/**
* @author DELL
*/
@Component
@EnableScheduling
public
class
PlanTaskJob
{
@Autowired
private
IPlanTaskService
planTaskService
;
/**
* 定时查询任务状态
*/
@Scheduled
(
cron
=
"${jobs.cron}"
)
public
void
scheduleJob
()
{
planTaskService
.
taskExecution
(
null
);
}
}
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