package cn.com.ctop.kuaishou.modules.report.job;
import cn.com.ctop.kuaishou.modules.report.service.IKuaishouReportDailyAgentService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

public class KuaishouAgentAccountJob implements Job {

    @Autowired
    private IKuaishouReportDailyAgentService kuaishouReportDailyAgentService;
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        int currentPage = 1;
        while (kuaishouReportDailyAgentService.getAccount(currentPage)){
            currentPage++;
        }
    }
}
