package com.qmth.sop.task.job;

import com.qmth.sop.common.enums.ExceptionResultEnum;
import com.qmth.sop.task.job.service.JobService;
import org.quartz.JobExecutionContext;
import org.springframework.scheduling.quartz.QuartzJobBean;

import javax.annotation.Resource;

/**
 * @Description: 软通智服用户推送定时任务
 * @Author: CaoZixuan
 * @Date: 2023-11-28
 */
public class RtzfUserPushJob extends QuartzJobBean {
    @Resource
    JobService jobService;


    @Override
    protected void executeInternal(JobExecutionContext context) {
        try {
            jobService.rtzfUserPush();
        } catch (Exception e) {
            throw ExceptionResultEnum.ERROR.exception(e.getMessage());
        }
    }
}
