package com.storlead.sales.task.crontask;

import com.storlead.sales.service.systemrule.SystemRuleModuleConfigService;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;

/***
 * @Description: 客户及线索置公时间及提醒时间数据写入定时任务
 * @Param:
 * @return:
 * @Author: YPZ
 * @Date: 2024/9/12 16:46
 */
@Slf4j
@Component
@NoArgsConstructor
@DisallowConcurrentExecution
public class ClustomerPublicDateTask implements Job {
    @Resource
    private SystemRuleModuleConfigService systemRuleModuleConfigService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        systemRuleModuleConfigService.clustomerPublicDateTask();
    }
}
