From e7efe7784535a77a21347c0ca142056c16a94902 Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期四, 30 四月 2026 16:52:10 +0800
Subject: [PATCH] 增加定时任务,一个月清除一次无用文件
---
src/main/resources/mapper/safe/SafeTrainingDetailsMapper.xml | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/safe/SafeTrainingDetailsMapper.xml b/src/main/resources/mapper/safe/SafeTrainingDetailsMapper.xml
index c96d711..7300cf0 100644
--- a/src/main/resources/mapper/safe/SafeTrainingDetailsMapper.xml
+++ b/src/main/resources/mapper/safe/SafeTrainingDetailsMapper.xml
@@ -30,7 +30,7 @@
left join safe_training st on std.safe_training_id = st.id
where std.user_id = #{c.userId}
<if test="c.trainingDate != null">
- and st.training_date = #{c.trainingDate}
+ and st.training_date = date_format(#{c.trainingDate},'%Y%m%d')
</if>
</select>
--
Gitblit v1.9.3