|  | @ -53,7 +53,7 @@ public class PatientConsultEndpoint extends EnvelopRestEndpoint {
 | 
												
													
														
															|  | 	
 |  | 	
 | 
												
													
														
															|  | 	@GetMapping(value = BaseHospitalRequestMapping.PatientIM.records)
 |  | 	@GetMapping(value = BaseHospitalRequestMapping.PatientIM.records)
 | 
												
													
														
															|  | 	@ApiOperation(value = "患者咨询记录查询")
 |  | 	@ApiOperation(value = "患者咨询记录查询")
 | 
												
													
														
															|  | 	public ListEnvelop records(
 |  | 
 | 
												
													
														
															|  | 
 |  | 	public Envelop records(
 | 
												
													
														
															|  | 								@ApiParam(name = "patient", value = "居民id")
 |  | 								@ApiParam(name = "patient", value = "居民id")
 | 
												
													
														
															|  | 								@RequestParam(value = "patient",required = true) String patient,
 |  | 								@RequestParam(value = "patient",required = true) String patient,
 | 
												
													
														
															|  | 								@ApiParam(name = "title", value = "咨询标题关键字")
 |  | 								@ApiParam(name = "title", value = "咨询标题关键字")
 | 
												
											
												
													
														
															|  | @ -62,11 +62,14 @@ 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 = "page", value = "第几页")
 | 
												
													
														
															|  | 
 |  | 								@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, pagesize, title);
 |  | 
 | 
												
													
														
															|  | 
 |  | 		List<ConsultVO>  data = imService.findConsultRecordByPatient(patient, id,type, page,pagesize, title);
 | 
												
													
														
															|  | 
 |  | 		
 | 
												
													
														
															|  | 		if (data != null) {
 |  | 		if (data != null) {
 | 
												
													
														
															|  | 			for (ConsultVO consult : data) {
 |  | 			for (ConsultVO consult : data) {
 | 
												
													
														
															|  | 				if (consult == null) {
 |  | 				if (consult == null) {
 | 
												
											
												
													
														
															|  | @ -96,7 +99,13 @@ public class PatientConsultEndpoint extends EnvelopRestEndpoint {
 | 
												
													
														
															|  | 				array.add(json);
 |  | 				array.add(json);
 | 
												
													
														
															|  | 			}
 |  | 			}
 | 
												
													
														
															|  | 		}
 |  | 		}
 | 
												
													
														
															|  | 		return success(array);
 |  | 
 | 
												
													
														
															|  | 
 |  | 		
 | 
												
													
														
															|  | 
 |  | 		Long total = imService.countConsultRecordByPatient(patient, id,type,title);
 | 
												
													
														
															|  | 
 |  | 		
 | 
												
													
														
															|  | 
 |  | 		JSONObject result = new JSONObject();
 | 
												
													
														
															|  | 
 |  | 		result.put("total",total);
 | 
												
													
														
															|  | 
 |  | 		result.put("list",data);
 | 
												
													
														
															|  | 
 |  | 		return success(result);
 | 
												
													
														
															|  | 	}
 |  | 	}
 | 
												
													
														
															|  | 	
 |  | 	
 | 
												
													
														
															|  | 	@GetMapping(value = BaseHospitalRequestMapping.PatientIM.isExistsUnfinishedConsult)
 |  | 	@GetMapping(value = BaseHospitalRequestMapping.PatientIM.isExistsUnfinishedConsult)
 |