|
@ -998,7 +998,17 @@ public class ImService {
|
|
|
ct.setConsult(consult.getId());
|
|
|
|
|
|
//推送给IM去创建议题,取得成员消息
|
|
|
JSONObject messages = imUtil.getCreateTopicMessage(patient, p.getName(), consult.getTitle(), content, consult.getImages(), doctorCode);
|
|
|
|
|
|
JSONObject messages = new JSONObject();
|
|
|
//协同门诊
|
|
|
if("2".equals(wlyyOutpatientDO.getOutpatientType())){
|
|
|
BaseDoctorDO generalDoctor = baseDoctorDao.findById(wlyyOutpatientDO.getGeneralDoctor());
|
|
|
messages = imUtil.getCreateTopicMessage(generalDoctor.getId(),generalDoctor.getName(), consult.getTitle(), content, consult.getImages(), doctorCode);
|
|
|
}else{
|
|
|
messages = imUtil.getCreateTopicMessage(patient, p.getName(), consult.getTitle(), content, consult.getImages(), doctorCode);
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//5、(im创建咨询) 续方咨询的sessionid为居民code+就诊code+咨询类型(图文,视频,图文+视频)
|
|
|
String sessionId = patient + "_" + outpatientCode + "_" + ct.getType();
|