123456789101112131415161718192021222324252627282930 |
- package com.yihu.wlyy.job;
- import com.yihu.wlyy.service.app.prenatalInspector.PrenatalInspectorPreCardService;
- import com.yihu.wlyy.util.DateUtil;
- import org.quartz.Job;
- import org.quartz.JobExecutionContext;
- import org.quartz.JobExecutionException;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.context.support.SpringBeanAutowiringSupport;
- import java.util.Date;
- /**
- * 产检提醒(1预约提醒,2就诊提醒)
- * Created by yeshijie on 2017/6/7.
- */
- public class PrenatalInspectorJob implements Job{
- @Autowired
- private PrenatalInspectorPreCardService preCardService;
- @Override
- public void execute(JobExecutionContext context) throws JobExecutionException {
- SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);
- System.out.print("prenatal inspector wx message sending...");
- String date = DateUtil.dateToStrShort(new Date());
- //发送产检微信模板提醒消息
- preCardService.sendPrenatalInspectorRemind();
- }
- }
|