|
@ -679,7 +679,7 @@ public class ConsultTeamService extends ConsultService {
|
|
|
// 添加医生咨询日志
|
|
|
String content = addLogs(ct);
|
|
|
//推送给IM文字消息
|
|
|
String returnJson= sendIM(ct.getPatient(), ct.getDoctor(), "1", content);
|
|
|
String returnJson= sendIM(ct.getPatient(), ct.getDoctor(), "6", content);
|
|
|
JSONObject jo=new JSONObject(returnJson);
|
|
|
//设置消息ID
|
|
|
consult.setStartMsgId(jo.getInt("startId"));
|
|
@ -854,7 +854,7 @@ public class ConsultTeamService extends ConsultService {
|
|
|
Consult consultObj=consultDao.findByCode(consult);
|
|
|
ConsultTeam consultTeam=consultTeamDao.findByConsult(consult);
|
|
|
//推送给IM文字消息
|
|
|
String returnJson= sendIM(consultTeam.getPatient(), consultTeam.getDoctor(), "1", "本次咨询结束");;
|
|
|
String returnJson= sendIM(consultTeam.getPatient(), consultTeam.getDoctor(), "7", "本次咨询结束");;
|
|
|
JSONObject jo=new JSONObject(returnJson);
|
|
|
//设置消息ID
|
|
|
consultObj.setEndMsgId(jo.getInt("startId"));
|
|
@ -1103,7 +1103,7 @@ public class ConsultTeamService extends ConsultService {
|
|
|
// 添加医生咨询日志
|
|
|
String content=addLogs(ct);
|
|
|
//推送给IM文字消息
|
|
|
String returnJson= sendIM(ct.getPatient(), ct.getDoctor(), "1", content);;
|
|
|
String returnJson= sendIM(ct.getPatient(), ct.getDoctor(), "6", content);;
|
|
|
JSONObject jo=new JSONObject(returnJson);
|
|
|
//设置消息ID
|
|
|
consult.setStartMsgId(jo.getInt("startId"));
|