|
@ -213,4 +213,23 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
|
|
|
}
|
|
|
return success("请求成功",result);
|
|
|
}
|
|
|
|
|
|
|
|
|
@GetMapping(value = BaseHospitalRequestMapping.PatientNoLogin.getUpcomingByDoctor)
|
|
|
@ApiOperation(value = "获取医生待办详情", notes = "获取医生待办详情")
|
|
|
public Envelop getUpcomingByDoctor(@ApiParam(name = "doctorIdcard", value = "doctorIdcard", required = true)
|
|
|
@RequestParam(value = "doctorIdcard",required = true)String doctorIdcard){
|
|
|
JSONObject result = new JSONObject();
|
|
|
List<BaseDoctorDO> doctors = baseDoctorService.findDoctorsByIdcard(doctorIdcard);
|
|
|
BaseDoctorDO doctor = new BaseDoctorDO();
|
|
|
if(!doctors.isEmpty()){
|
|
|
doctor = doctors.get(0);
|
|
|
}else{
|
|
|
return success("该身份证无法找到医生",-1);
|
|
|
}
|
|
|
//专家咨询
|
|
|
result.put("zxCount",imService.sessionCountByType(doctor.getId(),1,0));
|
|
|
result.put("fzCount",prescriptionService.getWaitVideoCount(doctor.getId(),"1","1"));//图文复诊数量
|
|
|
return success("请求成功",result);
|
|
|
}
|
|
|
}
|