|
@ -961,7 +961,8 @@ public class ConsultTeamService extends ConsultService {
|
|
|
JSONObject messages = ImUtill.getCreateTopicMessage(patient, p.getName(), consult.getTitle(), content, consult.getImages(),agent);
|
|
|
|
|
|
//5、(im创建咨询) 续方咨询的sessionid为居民code+续方code+咨询类型
|
|
|
JSONObject obj = ImUtill.createTopics(patient + "_" + consult.getCode() + "_" + ct.getType(), consult.getCode(), p.getName(), users, messages, ImUtill.SESSION_TYPE_PRESCRIPTION);
|
|
|
String sessionId = patient + "_" + consult.getCode() + "_" + ct.getType();
|
|
|
JSONObject obj = ImUtill.createTopics(sessionId, consult.getCode(), p.getName(), users, messages, ImUtill.SESSION_TYPE_PRESCRIPTION);
|
|
|
if (obj == null) {
|
|
|
throw new RuntimeException("IM消息发送异常!");
|
|
|
}
|
|
@ -985,7 +986,7 @@ public class ConsultTeamService extends ConsultService {
|
|
|
consultTeamDoctorDao.save(cd);
|
|
|
|
|
|
//7、发送系统消息提示团队长有未审核的消息
|
|
|
addCheckMessage(prescription);
|
|
|
addCheckMessage(prescription,sessionId);
|
|
|
|
|
|
//8、 保存医生咨询信息
|
|
|
// 添加咨询转发记录
|
|
@ -1000,7 +1001,7 @@ public class ConsultTeamService extends ConsultService {
|
|
|
* 保存审核提醒消息
|
|
|
* @param prescription
|
|
|
*/
|
|
|
public void addCheckMessage(Prescription prescription){
|
|
|
public void addCheckMessage(Prescription prescription,String sessionId){
|
|
|
Message message = new Message();
|
|
|
message.setCzrq(new Date());
|
|
|
message.setCreateTime(new Date());
|
|
@ -1017,6 +1018,8 @@ public class ConsultTeamService extends ConsultService {
|
|
|
message.setDel("1");
|
|
|
message.setRelationCode(prescription.getConsult());
|
|
|
message.setPrescriptionStatus("0");
|
|
|
message.setSessionId(sessionId);
|
|
|
message.setSessionName(prescription.getPatientName());
|
|
|
messageDao.save(message);
|
|
|
}
|
|
|
|