|
@ -276,10 +276,10 @@ public class ImService {
|
|
|
* @param general_doctor 全科医生
|
|
|
* @return
|
|
|
*/
|
|
|
public String getUnfinishedConsultByActualSender(String patient, String general_doctor) {
|
|
|
|
|
|
public JSONObject getUnfinishedConsultByActualSender(String patient, String general_doctor) {
|
|
|
JSONObject result = new JSONObject();
|
|
|
|
|
|
String totalSql = "SELECT a.consult as consultCode " +
|
|
|
String totalSql = "SELECT a.consult as consultCode,a.doctor as specialDoctor " +
|
|
|
"FROM wlyy_consult_team a,wlyy_consult_team_doctor b " +
|
|
|
"WHERE a.consult=b.consult " +
|
|
|
"AND a.patient= '" +patient+"' "+
|
|
@ -291,10 +291,15 @@ public class ImService {
|
|
|
List<Map<String, Object>> rstotal = jdbcTemplate.queryForList(totalSql);
|
|
|
|
|
|
String consultCode = "";
|
|
|
String special_doctor = "";
|
|
|
if (rstotal != null && rstotal.size() > 0) {
|
|
|
consultCode = rstotal.get(0).get("consultCode").toString();
|
|
|
special_doctor = rstotal.get(0).get("specialDoctor").toString();
|
|
|
result.put("consultCode",consultCode);
|
|
|
result.put("special_doctor",special_doctor);
|
|
|
|
|
|
}
|
|
|
return consultCode;
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
|
|
@ -1817,7 +1822,7 @@ public class ImService {
|
|
|
String sessionId = "";
|
|
|
messages = imUtil.getCreateTopicMessage(generalDoctor.getId(),generalDoctor.getName(), consult.getTitle(), content, consult.getImages(), special_doctor);
|
|
|
//5、(im创建咨询) 续方咨询的sessionid为居民code+就诊code+12(图文,视频,图文+视频)
|
|
|
sessionId = patient_code+"_"+general_doctor + "_" + ct.getType();
|
|
|
sessionId = patient_code+"_"+general_doctor + "_" +special_doctor + "_"+ct.getType();
|
|
|
obj = imUtil.createTopics(sessionId, consult.getId(), p.getName(), users, messages, imUtil.SESSION_TYPE_GENERAL_EXPERT);
|
|
|
|
|
|
if (obj == null) {
|