Ver código fonte

将定时备份日志时间改为每月1号3点执行

xusl 2 anos atrás
pai
commit
879f0ea1a2

+ 2 - 2
backend/src/main/java/com/jiayue/ssi/job/AutoAuditBak.java

@@ -50,9 +50,9 @@ public class AutoAuditBak {
     SysOperLogService sysOperLogService;
 
     /**
-     * 每30分钟执行一次扫描
+     * 每月1号3点执行执行一次
      */
-    @Scheduled(cron = "0 0/1 * * * ?")
+    @Scheduled(cron = "0 0 3 1 * ?")
     public void auditBak() throws Exception{
         SysPolicy sysPolicy = sysPolicyService.getOne(new QueryWrapper<>());
         // 保留月份数