|
@ -13,6 +13,7 @@ import org.quartz.Job;
|
|
|
import org.quartz.JobExecutionContext;
|
|
|
import org.quartz.JobExecutionException;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.context.annotation.Scope;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.stereotype.Component;
|
|
@ -32,7 +33,8 @@ public class HealthMessageJob implements Job {
|
|
|
public static String jobKey="Health_Message_JOB";
|
|
|
public static String cron="0 0 8 * * ?";
|
|
|
|
|
|
|
|
|
@Value("${systemConfig.msg_push_server}")
|
|
|
private String url;
|
|
|
@Autowired
|
|
|
private DBExtract dbExtract;
|
|
|
@Autowired
|
|
@ -120,6 +122,8 @@ public class HealthMessageJob implements Job {
|
|
|
quartzJobLog.setJobType("1");
|
|
|
dbStorage.saveLog(quartzJobLog);
|
|
|
|
|
|
// 推送消息给医生
|
|
|
PushMsgTask.url=url;
|
|
|
// 推送消息给医生
|
|
|
PushMsgTask.getInstance().put(jsonArray);
|
|
|
}catch (Exception e){
|