#
Junjie
2025-04-30 4d16b2b9acece51729f7aa4fb5aaabe30659eb60
src/main/java/com/zy/asrs/mapper/DeviceDataLogMapper.java
@@ -2,6 +2,7 @@
import com.zy.asrs.entity.DeviceDataLog;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
@@ -9,4 +10,7 @@
@Repository
public interface DeviceDataLogMapper extends BaseMapper<DeviceDataLog> {
    @Delete("delete from wcs_device_data_log where create_time < FROM_UNIXTIME(UNIX_TIMESTAMP() - (3 * 24 * 60 * 60))")
    int clearLog();
}