From 581e78e7cb19dff7eb1d57ff4c84b7adcd6a9626 Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期五, 14 三月 2025 08:33:47 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/mapper/DeviceDataLogMapper.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/asrs/mapper/DeviceDataLogMapper.java b/src/main/java/com/zy/asrs/mapper/DeviceDataLogMapper.java index d4ce894..4b6000a 100644 --- a/src/main/java/com/zy/asrs/mapper/DeviceDataLogMapper.java +++ b/src/main/java/com/zy/asrs/mapper/DeviceDataLogMapper.java @@ -10,7 +10,7 @@ @Repository public interface DeviceDataLogMapper extends BaseMapper<DeviceDataLog> { - @Delete("delete from wcs_device_data_log where create_time < DATEADD(HOUR, -24, GETDATE())") + @Delete("delete from wcs_device_data_log where create_time < FROM_UNIXTIME(UNIX_TIMESTAMP() - (24 * 60 * 60))") int clearLog(); } -- Gitblit v1.9.1