package cn.cslg.report.mapper;

import cn.cslg.report.entity.ImportTask;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

@Mapper
@SuppressWarnings({"all"})
public interface ImportTaskMapper extends BaseMapper<ImportTask> {
    @Delete("delete * from IMPORT_TASK where FINISH_TIME<=#{date}")
    void dele(@Param("date") Date date );
    @Select("select * from  IMPORT_TASK where FINISH_TIME<=#{date}")
    List<ImportTask> find(@Param("date")Date date);
}
