package com.warewms.job.task;

import cn.hutool.core.date.DateUtil;
import com.jfinal.plugin.activerecord.Db;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * Created by IntelliJ IDEA.
 * User: andy.qu
 * Date: 2019/11/5
 */
@Component("sysClearLogTask")
@Slf4j
public class SysClearLogTask {

    public void exec(){
//        String begin = DateUtil.format(DateUtil.yesterday(), "yyyy-MM-dd");
//        String end = DateUtil.format(DateUtil.date(), "yyyy-MM-dd");
        Db.delete("delete from schedule_job_log");
    }
}