|
@ -1,7 +1,6 @@
|
|
|
package com.yihu.wlyy.activemq;
|
|
|
|
|
|
import com.yihu.es.entity.HealthEduArticleES;
|
|
|
import com.yihu.es.entity.HealthEduArticlePatient;
|
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
|
import com.yihu.wlyy.service.app.consult.ConsultService;
|
|
|
import com.yihu.wlyy.service.common.account.PatientService;
|
|
@ -22,7 +21,6 @@ import javax.jms.JMSException;
|
|
|
import javax.jms.Message;
|
|
|
import javax.jms.MessageListener;
|
|
|
import javax.jms.TextMessage;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* Created by chenweida on 2017/9/9.
|
|
@ -75,7 +73,7 @@ public class HealthArtListener implements MessageListener {
|
|
|
}
|
|
|
// 推送消息给微信端
|
|
|
org.json.JSONObject json = new org.json.JSONObject();
|
|
|
json.put("first", patient.getName() + ",您好! " + one.getSendName() + (one.getSendType()==2 ? "卫计委":"医生") +"给您发来了一篇患教文章");
|
|
|
json.put("first", patient.getName() + ",您好! " + one.getSendName() + (one.getSendType()==2 ? "管理员":"医生") +"给您发来了一篇患教文章");
|
|
|
json.put("toUser", patient.getCode());
|
|
|
json.put("article", one.getArticleId() + "");
|
|
|
json.put("title", one.getArticleTitle());
|