Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-task-scheduler
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e36aff0f
authored
May 13, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化设备激活定时任务同步时间
1 parent
ed56c8ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
src/main/java/cn/com/glsx/schedulerjob/task/taskscheduler/DeviceActiveSchedulerJob.java
src/test/java/cn/com/glsx/schedulerjob/task/modules/service/DeviceActiveSchedulerJobServiceTest.java
src/main/java/cn/com/glsx/schedulerjob/task/taskscheduler/DeviceActiveSchedulerJob.java
View file @
e36aff0
...
@@ -18,7 +18,7 @@ import java.util.Date;
...
@@ -18,7 +18,7 @@ import java.util.Date;
*/
*/
@Slf4j
@Slf4j
@Component
@Component
@ElasticSimpleJob
(
jobName
=
"DeviceActiveSchedulerJob"
,
cron
=
"0 30
5
* * ?"
)
@ElasticSimpleJob
(
jobName
=
"DeviceActiveSchedulerJob"
,
cron
=
"0 30
3
* * ?"
)
public
class
DeviceActiveSchedulerJob
implements
SimpleJob
{
public
class
DeviceActiveSchedulerJob
implements
SimpleJob
{
@Autowired
@Autowired
...
...
src/test/java/cn/com/glsx/schedulerjob/task/modules/service/DeviceActiveSchedulerJobServiceTest.java
View file @
e36aff0
...
@@ -2,7 +2,7 @@ package cn.com.glsx.schedulerjob.task.modules.service;
...
@@ -2,7 +2,7 @@ package cn.com.glsx.schedulerjob.task.modules.service;
import
cn.com.glsx.Application
;
import
cn.com.glsx.Application
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.junit.
jupiter.api.
Test
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.boot.test.context.SpringBootTest
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment