package cn.axzo.msg.center.dal.mapper;

import cn.axzo.msg.center.domain.entity.CardLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;

import java.util.Date;

/**
 * @author yanglin
 */
public interface CardLogMapper extends BaseMapper<CardLog> {

    @Delete("DELETE FROM card_log WHERE create_at <= #{until}")
    int expunge(Date until);

}
