|
@ -1642,7 +1642,14 @@ public class ImService {
|
|
|
}else{
|
|
|
JSONObject participants = new JSONObject();
|
|
|
participants.put(patientCode,0);
|
|
|
JSONObject sessionJson = imUtil.createSession(participants,imUtil.SESSION_TYPE_GUIDANCE_HOSPITAL,"居民求助导诊护士",session_id);
|
|
|
BasePatientDO basePatientDO = basePatientDao.findById(patientCode);
|
|
|
String patientSex = "";
|
|
|
if(1 == basePatientDO.getSex()){
|
|
|
patientSex= "男";
|
|
|
}else{
|
|
|
patientSex= "女";
|
|
|
}
|
|
|
JSONObject sessionJson = imUtil.createSession(participants,imUtil.SESSION_TYPE_GUIDANCE_HOSPITAL,"居民 "+basePatientDO.getName()+" "+patientSex,session_id);
|
|
|
if(sessionJson.getInteger("status") ==-1){
|
|
|
throw new RuntimeException(sessionJson.getString("message"));
|
|
|
}else{
|