|
@ -22,6 +22,7 @@ import com.yihu.wlyy.statistics.vo.WlyyQuotaVO;
|
|
|
import org.quartz.SchedulerException;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@ -478,10 +479,13 @@ public class JobService {
|
|
|
}
|
|
|
|
|
|
/******************************* 随访计划任务 *******************************************************/
|
|
|
private String followupJob = "FOLLOWUP_PLAN_JOB";
|
|
|
@Value("${spring.followupMessage.jobId}")
|
|
|
private String followupJob;
|
|
|
@Value("${spring.followupMessage.cron}")
|
|
|
private String followupJobCron;
|
|
|
public void startFollowupPlantJob() throws Exception {
|
|
|
if (!quartzHelper.isExistJob(followupJob)) {
|
|
|
quartzHelper.addJob(FollowupPlanJob.class, FollowupPlanJob.cron, followupJob, new HashMap<>());
|
|
|
quartzHelper.addJob(FollowupPlanJob.class, followupJobCron, followupJob, new HashMap<>());
|
|
|
} else {
|
|
|
throw new Exception("已经启动");
|
|
|
}
|