|
@ -875,15 +875,17 @@ public class DoctorConsultController extends WeixinBaseController {
|
|
|
json.put("isCommonTeam", 1);
|
|
|
return write(200, "查询成功", "data", json);
|
|
|
}
|
|
|
|
|
|
List<ConsultTeam> ls = consultTeamService.hasUnfinished(doctorCode, curDoc);
|
|
|
if(ls!=null && ls.size() > 0){
|
|
|
ConsultTeam ct = ls.get(0);
|
|
|
json.put("consult", ct.getConsult());
|
|
|
//是否是医生求助医生
|
|
|
if(ct.getType()==10){
|
|
|
json.put("zxGroupCode",ct.getTeam());
|
|
|
ConsultTeam consultTeam = consultTeamService.findByConsultCode(ct.getTeam());
|
|
|
Patient patient = patientService.findByCode(consultTeam.getPatient());
|
|
|
json.put("zxGroupCode",consultTeam.getPatient()+"_consult_"+consultTeam.getType());
|
|
|
json.put("from", ct.getPatient());
|
|
|
json.put("patient_name", patient.getName());
|
|
|
}
|
|
|
}
|
|
|
return write(200, "查询成功", "data", json);
|