|
@ -768,10 +768,10 @@ public class ConsultTeamService extends ConsultService {
|
|
|
|
|
|
//自动关注 咨询关注
|
|
//自动关注 咨询关注
|
|
ConcernDO concernDO = concernDao.findByPatientAndDoctor(patient,doctorCode);
|
|
ConcernDO concernDO = concernDao.findByPatientAndDoctor(patient,doctorCode);
|
|
if(concernDO==null){
|
|
|
|
concernService.addConcern(patient,doctorCode,3);
|
|
|
|
concernDO = concernDao.findByPatientAndDoctor(patient,doctorCode);
|
|
|
|
}
|
|
|
|
|
|
// if(concernDO==null){
|
|
|
|
// concernService.addConcern(patient,doctorCode,3);
|
|
|
|
// concernDO = concernDao.findByPatientAndDoctor(patient,doctorCode);
|
|
|
|
// }
|
|
|
|
|
|
if (exist(patient, ct.getType(),doctorCode)) {
|
|
if (exist(patient, ct.getType(),doctorCode)) {
|
|
re.put("status",-1);
|
|
re.put("status",-1);
|
|
@ -812,11 +812,12 @@ public class ConsultTeamService extends ConsultService {
|
|
ct.setConsult(consult.getCode());
|
|
ct.setConsult(consult.getCode());
|
|
//设置服务团队
|
|
//设置服务团队
|
|
ct.setTeam(concernDO.getTeamCode());
|
|
ct.setTeam(concernDO.getTeamCode());
|
|
|
|
ct.setDoctor(doctorCode);
|
|
|
|
|
|
//推送给IM去创建议题,取得成员消息
|
|
//推送给IM去创建议题,取得成员消息
|
|
JSONObject messages = imUtill.getCreateTopicMessage(patient, tempPatient.getName(), consult.getTitle(), consult.getSymptoms(), consult.getImages(),agent);
|
|
JSONObject messages = imUtill.getCreateTopicMessage(patient, tempPatient.getName(), consult.getTitle(), consult.getSymptoms(), consult.getImages(),agent);
|
|
users.put(patient, 0);
|
|
users.put(patient, 0);
|
|
JSONObject obj = imUtill.createTopics(patient + "_" + ct.getTeam() + "_" + ct.getType(), consult.getCode(), tempPatient.getName(), users, messages, ImUtill.SESSION_TYPE_MUC);
|
|
|
|
|
|
JSONObject obj = imUtill.createTopics(patient + "_" + ct.getDoctor() + "_" + ct.getType(), consult.getCode(), tempPatient.getName(), users, messages, ImUtill.SESSION_TYPE_MUC);
|
|
if (obj == null) {
|
|
if (obj == null) {
|
|
throw new RuntimeException("IM消息发送异常!");
|
|
throw new RuntimeException("IM消息发送异常!");
|
|
}
|
|
}
|