#
luxiaotao1123
2024-04-03 b67f13b04339ac0cd1a10b07d58e9c30c53b97a2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.zy.asrs.wcs.rcs.mapper;
 
import com.zy.asrs.wcs.rcs.entity.DeviceDataLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
 
@Mapper
@Repository
public interface DeviceDataLogMapper extends BaseMapper<DeviceDataLog> {
 
    @Delete("delete from rcs_device_data_log where create_time < DATEADD(HOUR, -24, GETDATE())")
    int clearLog();
 
}