Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -48,4 +48,3 @@ log
|
|||||||
temp/
|
temp/
|
||||||
|
|
||||||
docker-compose.yml
|
docker-compose.yml
|
||||||
|
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ services:
|
|||||||
# 数据挂载
|
# 数据挂载
|
||||||
- /workspace/home/aida/file/:/workspace/home/aida/file/
|
- /workspace/home/aida/file/:/workspace/home/aida/file/
|
||||||
ports:
|
ports:
|
||||||
- "10086:5567"
|
- "10086:5567"
|
||||||
@@ -17,9 +17,9 @@ public class MyTaskScheduler {
|
|||||||
@Resource
|
@Resource
|
||||||
private AccountMapper accountMapper;
|
private AccountMapper accountMapper;
|
||||||
|
|
||||||
// 定时任务,每周一零点执行一次
|
// 定时任务,每十五天执行一次
|
||||||
@Scheduled(cron = "0 0 0 ? * MON")
|
// @Scheduled(cron = "0 0 0 ? * MON")
|
||||||
// @Scheduled(cron = "0 0/1 * * * ?")
|
@Scheduled(cron = "0 0 0 */15 * ?")
|
||||||
public void checkExpiry() {
|
public void checkExpiry() {
|
||||||
// 检测正式用户是否快要过期
|
// 检测正式用户是否快要过期
|
||||||
QueryWrapper<Account> qw = new QueryWrapper<>();
|
QueryWrapper<Account> qw = new QueryWrapper<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user