|
@ -73,13 +73,15 @@ public class PatientConsultEndpoint extends EnvelopRestEndpoint {
|
|
@RequestParam(value = "id",required = false) String id,
|
|
@RequestParam(value = "id",required = false) String id,
|
|
@ApiParam(name = "type", value = "咨询类型")
|
|
@ApiParam(name = "type", value = "咨询类型")
|
|
@RequestParam(value = "type",required = true) Integer type,
|
|
@RequestParam(value = "type",required = true) Integer type,
|
|
|
|
@ApiParam(name = "status", value = "咨询状态:0全部,1候诊中,2就诊中,3结束")
|
|
|
|
@RequestParam(value = "status",required = false) Integer status,
|
|
@ApiParam(name = "page", value = "第几页")
|
|
@ApiParam(name = "page", value = "第几页")
|
|
@RequestParam(value = "page",required = false) int page,
|
|
@RequestParam(value = "page",required = false) int page,
|
|
@ApiParam(name = "pagesize", value = "分页大小")
|
|
@ApiParam(name = "pagesize", value = "分页大小")
|
|
@RequestParam(value = "pagesize",required = false) int pagesize
|
|
@RequestParam(value = "pagesize",required = false) int pagesize
|
|
)throws Exception{
|
|
)throws Exception{
|
|
JSONArray array = new JSONArray();
|
|
JSONArray array = new JSONArray();
|
|
List<ConsultVO> data = imService.findConsultRecordByPatient(patient, id,type, page,pagesize, title);
|
|
|
|
|
|
List<ConsultVO> data = imService.findConsultRecordByPatient(patient, id,type, page,pagesize, title,status);
|
|
|
|
|
|
if (data != null) {
|
|
if (data != null) {
|
|
for (ConsultVO consult : data) {
|
|
for (ConsultVO consult : data) {
|
|
@ -106,6 +108,8 @@ public class PatientConsultEndpoint extends EnvelopRestEndpoint {
|
|
json.put("jobTitleName", consult.getJobTitleName());
|
|
json.put("jobTitleName", consult.getJobTitleName());
|
|
//医生名称
|
|
//医生名称
|
|
json.put("doctorName", consult.getDoctorName());
|
|
json.put("doctorName", consult.getDoctorName());
|
|
|
|
//部门名称
|
|
|
|
json.put("deptName", consult.getDeptName());
|
|
|
|
|
|
array.add(json);
|
|
array.add(json);
|
|
}
|
|
}
|