|
@ -8,6 +8,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;
|
|
@ -26,6 +27,9 @@ public class FollowupPlanJob implements Job {
|
|
|
@Autowired
|
|
|
JdbcTemplate jdbcTemplate;
|
|
|
|
|
|
@Value("${systemConfig.msg_push_server}")
|
|
|
private String url;
|
|
|
|
|
|
@Autowired
|
|
|
private MessageDao messageDao;
|
|
|
|
|
@ -78,6 +82,8 @@ public class FollowupPlanJob implements Job {
|
|
|
message.setReadonly(1);//是否只读消息
|
|
|
list.add(message);
|
|
|
// 推送消息给医生
|
|
|
PushMsgTask.url= url+"api/v1/chats/sm";
|
|
|
// 推送消息给医生
|
|
|
PushMsgTask.getInstance().put(doctor,"4",title,content,"");
|
|
|
}
|
|
|
|