Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
f15e607c
Commit
f15e607c
authored
Jun 05, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分享
parent
b0a74ad7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/job/NewItemNoticeJob.java
...pi/src/main/java/com/wwdz/ch/wx/job/NewItemNoticeJob.java
+2
-1
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/job/NewItemNoticeJob.java
View file @
f15e607c
...
...
@@ -18,6 +18,7 @@ import org.redisson.api.RedissonClient;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.CollectionUtils
;
import
java.time.LocalDateTime
;
...
...
@@ -57,7 +58,7 @@ public class NewItemNoticeJob {
/**
* 每天晚上八点执行一次
*/
//
@Scheduled(cron = "0 0 20 * * ?")
//
@Scheduled(cron = "0 0 20 * * ?")
public
void
execute
()
{
RLock
lock
=
redissonClient
.
getLock
(
NEW_ITEM_NOTICE_KEY
);
if
(!
lock
.
tryLock
())
{
...
...
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