|  | @ -1,6 +1,7 @@
 | 
												
													
														
															|  | package com.yihu.jw.hospital.endpoint.prescription;
 |  | package com.yihu.jw.hospital.endpoint.prescription;
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | import com.yihu.jw.hospital.prescription.service.PrescriptionService;
 |  | import com.yihu.jw.hospital.prescription.service.PrescriptionService;
 | 
												
													
														
															|  | 
 |  | import com.yihu.jw.restmodel.hospital.prescription.WlyyOutpatientVO;
 | 
												
													
														
															|  | import com.yihu.jw.restmodel.hospital.prescription.WlyyPrescriptionVO;
 |  | import com.yihu.jw.restmodel.hospital.prescription.WlyyPrescriptionVO;
 | 
												
													
														
															|  | import com.yihu.jw.restmodel.web.ListEnvelop;
 |  | import com.yihu.jw.restmodel.web.ListEnvelop;
 | 
												
													
														
															|  | import com.yihu.jw.restmodel.web.MixEnvelop;
 |  | import com.yihu.jw.restmodel.web.MixEnvelop;
 | 
												
											
												
													
														
															|  | @ -37,14 +38,14 @@ public class PrescriptionEndpoint extends EnvelopRestEndpoint {
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     @GetMapping(value = BaseHospitalRequestMapping.Prescription.findOutpatientList)
 |  |     @GetMapping(value = BaseHospitalRequestMapping.Prescription.findOutpatientList)
 | 
												
													
														
															|  |     @ApiOperation(value = " 查询某个时间段的患者门诊就诊记录 V1.00")
 |  |     @ApiOperation(value = " 查询某个时间段的患者门诊就诊记录 V1.00")
 | 
												
													
														
															|  |     public ListEnvelop findOutpatientList(@ApiParam(name = "patNo", value = "居民id")
 |  | 
 | 
												
													
														
															|  |                                @RequestParam(value = "patNo",required = false) String patNo,
 |  | 
 | 
												
													
														
															|  | 
 |  |     public ListEnvelop findOutpatientList(@ApiParam(name = "patient", value = "居民id")
 | 
												
													
														
															|  | 
 |  |                                @RequestParam(value = "patient",required = false) String patient,
 | 
												
													
														
															|  |                                @ApiParam(name = "startTime", value = "开始时间")
 |  |                                @ApiParam(name = "startTime", value = "开始时间")
 | 
												
													
														
															|  |                                @RequestParam(value = "startTime",required = false) String startTime,
 |  |                                @RequestParam(value = "startTime",required = false) String startTime,
 | 
												
													
														
															|  |                                @ApiParam(name = "endTime", value = "结束时间")
 |  |                                @ApiParam(name = "endTime", value = "结束时间")
 | 
												
													
														
															|  |                                @RequestParam(value = "endTime",required = false) String endTime) throws Exception {
 |  |                                @RequestParam(value = "endTime",required = false) String endTime) throws Exception {
 | 
												
													
														
															|  |         JSONArray obj = prescriptionService.findOutpatientList(patNo, startTime, endTime, demoFlag);
 |  | 
 | 
												
													
														
															|  |         return success(obj);
 |  | 
 | 
												
													
														
															|  | 
 |  |         List<WlyyOutpatientVO> vos = prescriptionService.findOutpatientList(patient, startTime, endTime, demoFlag);
 | 
												
													
														
															|  | 
 |  |         return success(vos);
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     @GetMapping(value = BaseHospitalRequestMapping.Prescription.findOriginPrescriptionList)
 |  |     @GetMapping(value = BaseHospitalRequestMapping.Prescription.findOriginPrescriptionList)
 | 
												
											
												
													
														
															|  | @ -87,13 +88,31 @@ public class PrescriptionEndpoint extends EnvelopRestEndpoint {
 | 
												
													
														
															|  |                                                                                   @RequestParam(value = "startTime", required = false)String startTime,
 |  |                                                                                   @RequestParam(value = "startTime", required = false)String startTime,
 | 
												
													
														
															|  |                                                                                   @ApiParam(name = "endTime", value = "结束时间,yyyy-MM-dd’")
 |  |                                                                                   @ApiParam(name = "endTime", value = "结束时间,yyyy-MM-dd’")
 | 
												
													
														
															|  |                                                                                   @RequestParam(value = "endTime", required = false)String endTime,
 |  |                                                                                   @RequestParam(value = "endTime", required = false)String endTime,
 | 
												
													
														
															|  |                                                                                   @RequestParam(value = "page", required = true) Integer page,
 |  | 
 | 
												
													
														
															|  | 
 |  |                                                                                   @ApiParam(name = "page", value = "第几页,1开始’")
 | 
												
													
														
															|  | 
 |  |                                                                                   @RequestParam(value = "page", required = false)Integer page,
 | 
												
													
														
															|  |                                                                                   @ApiParam(name = "size", value = "每页大小")
 |  |                                                                                   @ApiParam(name = "size", value = "每页大小")
 | 
												
													
														
															|  |                                                                                   @RequestParam(value = "size", required = true) Integer size) {
 |  |                                                                                   @RequestParam(value = "size", required = true) Integer size) {
 | 
												
													
														
															|  |         return prescriptionService.findPrescriptionList(patient,status,startTime,endTime,page,size);
 |  |         return prescriptionService.findPrescriptionList(patient,status,startTime,endTime,page,size);
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     @GetMapping(value = BaseHospitalRequestMapping.Prescription.findPrescriptionInfo)
 |  | 
 | 
												
													
														
															|  | 
 |  |     @GetMapping(value = BaseHospitalRequestMapping.Prescription.findReOutpatientList)
 | 
												
													
														
															|  | 
 |  |     @ApiOperation(value = "查询复诊记录列表", notes = "查询复诊记录列表")
 | 
												
													
														
															|  | 
 |  |     public MixEnvelop<WlyyOutpatientVO,WlyyOutpatientVO> findReOutpatientList(@ApiParam(name = "patient", value = "居民code")
 | 
												
													
														
															|  | 
 |  |                                                                               @RequestParam(value = "patient", required = true) String patient,
 | 
												
													
														
															|  | 
 |  |                                                                               @ApiParam(name = "status", value = "状态:-1取消,0候诊中,1就诊中,2已完成")
 | 
												
													
														
															|  | 
 |  |                                                                               @RequestParam(value = "status", required = false) Integer status,
 | 
												
													
														
															|  | 
 |  |                                                                               @ApiParam(name = "startTime", value = "开始时间,‘yyyy-MM-dd’")
 | 
												
													
														
															|  | 
 |  |                                                                               @RequestParam(value = "startTime", required = false)String startTime,
 | 
												
													
														
															|  | 
 |  |                                                                               @ApiParam(name = "endTime", value = "结束时间,yyyy-MM-dd’")
 | 
												
													
														
															|  | 
 |  |                                                                               @RequestParam(value = "endTime", required = false)String endTime,
 | 
												
													
														
															|  | 
 |  |                                                                               @ApiParam(name = "page", value = "第几页,1开始’")
 | 
												
													
														
															|  | 
 |  |                                                                               @RequestParam(value = "page", required = false)Integer page,
 | 
												
													
														
															|  | 
 |  |                                                                               @ApiParam(name = "size", value = "每页大小")
 | 
												
													
														
															|  | 
 |  |                                                                               @RequestParam(value = "size", required = true) Integer size) {
 | 
												
													
														
															|  | 
 |  |         return prescriptionService.findReOutpatientList(patient,status,startTime,endTime,page,size);
 | 
												
													
														
															|  | 
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |         @GetMapping(value = BaseHospitalRequestMapping.Prescription.findPrescriptionInfo)
 | 
												
													
														
															|  |     @ApiOperation(value = "获取所有居民相关信息,续方信息,物流信息,药品信息(单条)", notes = "获取所有居民相关信息,续方信息,物流信息,药品信息(单条)")
 |  |     @ApiOperation(value = "获取所有居民相关信息,续方信息,物流信息,药品信息(单条)", notes = "获取所有居民相关信息,续方信息,物流信息,药品信息(单条)")
 | 
												
													
														
															|  |     public ObjEnvelop<Map<String,Object>> findPrescriptionInfo(@ApiParam(name = "prescriptionId", value = "续方明细")
 |  |     public ObjEnvelop<Map<String,Object>> findPrescriptionInfo(@ApiParam(name = "prescriptionId", value = "续方明细")
 | 
												
													
														
															|  |                                                                @RequestParam(value = "prescriptionId", required = false) String prescriptionId) {
 |  |                                                                @RequestParam(value = "prescriptionId", required = false) String prescriptionId) {
 |