|
@ -60,6 +60,12 @@ public class PushMsgTask {
|
|
|
private String template_consult_notice;
|
|
|
@Value("${wechat.message.template_health_notice}")
|
|
|
private String template_health_notice;
|
|
|
@Value("${wechat.message.template_healthy_article}")
|
|
|
private String template_healthy_article;
|
|
|
@Value("${wechat.message.information_change_notice}")
|
|
|
private String information_change_notice;
|
|
|
@Value("${wechat.message.feedback_processing_notice}")
|
|
|
private String feedback_processing_notice;
|
|
|
//=======微信模板配置流程=======================
|
|
|
|
|
|
@Autowired
|
|
@ -73,7 +79,10 @@ public class PushMsgTask {
|
|
|
public enum pushType{
|
|
|
//dome,根据实际情况配置相应模板
|
|
|
consult("咨询回复",1),
|
|
|
health_education("健康教育",2);
|
|
|
health_education("健康教育",2),
|
|
|
healthy_article("患教通知",3),
|
|
|
change_notice("信息变更",4),
|
|
|
feedback_processing("反馈处理",5);
|
|
|
|
|
|
private String name;
|
|
|
private int value;
|
|
@ -81,7 +90,6 @@ public class PushMsgTask {
|
|
|
this.name = name;
|
|
|
this.value = value;
|
|
|
}
|
|
|
|
|
|
public String getName() {
|
|
|
return name;
|
|
|
}
|
|
@ -112,6 +120,12 @@ public class PushMsgTask {
|
|
|
return template_consult_notice;
|
|
|
}else if(pushType.health_education.getValue()==type){
|
|
|
return template_health_notice;
|
|
|
}else if(pushType.healthy_article.getValue()==type){
|
|
|
return template_healthy_article;
|
|
|
}else if(pushType.change_notice.getValue()==type){
|
|
|
return information_change_notice;
|
|
|
}else if(pushType.feedback_processing.getValue()==type){
|
|
|
return feedback_processing_notice;
|
|
|
}else {
|
|
|
return "";
|
|
|
}
|