package com.jiayue.insu.inclientqn.job;

import cn.hutool.core.date.DateUtil;
import com.jiayue.insu.inclientqn.service.client.CorrforeService;
import com.jiayue.insu.inclientqn.util.DateTimeUtils;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @description: 获取超短期修正系数
 * @author: yuanhao
 * @createDate: 2022/6/17
 * @version: 1.0
 */
public class CorrectUsJob implements Job {
    @Autowired
    private CorrforeService corrforeService;
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        long time = DateTimeUtils.get15min(DateUtil.date().getTime());
        corrforeService.downLoadUltraShortTerm(time);
    }
}
