From 76274f98e9ca3388db2e8714bf1419386a88e084 Mon Sep 17 00:00:00 2001 From: wxc <191104855@qq.com> Date: Mon, 22 Sep 2025 08:55:30 +0800 Subject: [PATCH] =?UTF-8?q?fit:=20=E9=9A=8F=E6=89=8B=E6=8B=8D:=20=E5=AE=9A?= =?UTF-8?q?=E6=9C=9F=E6=B8=85=E7=90=861=E4=B8=AA=E6=9C=88=E5=89=8D?= =?UTF-8?q?=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84=E7=85=A7=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/biutag/supervision/job/TaskJob.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/biutag/supervision/job/TaskJob.java b/src/main/java/com/biutag/supervision/job/TaskJob.java index 8d18220..41905fb 100644 --- a/src/main/java/com/biutag/supervision/job/TaskJob.java +++ b/src/main/java/com/biutag/supervision/job/TaskJob.java @@ -102,13 +102,13 @@ public class TaskJob { } } - // 每日01:00 清理 7天前未关联的照片 + // 每日01:00 清理 1个月前未关联的照片 @Scheduled(cron = "0 0 4 * * ?") public void cleanPhoto() { supPhotoService.remove(new LambdaQueryWrapper() .eq(SupPhoto::getIsUse, false) - // 7天前 - .ge(SupPhoto::getCreateTime, LocalDateTime.now().minusDays(7))); + // 1个月前 + .ge(SupPhoto::getCreateTime, LocalDateTime.now().minusMonths(1))); } }