Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
2024-01-09 13:54:55 +08:00
3 changed files with 4 additions and 5 deletions

1
.gitignore vendored
View File

@@ -48,4 +48,3 @@ log
temp/ temp/
docker-compose.yml docker-compose.yml

View File

@@ -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"

View File

@@ -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<>();