|  | @ -10,6 +10,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | import org.springframework.http.MediaType;
 | 
	
		
			
				|  |  | import org.springframework.stereotype.Controller;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.RequestMapping;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.RequestMethod;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.RequestParam;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.ResponseBody;
 | 
	
		
			
				|  |  | 
 | 
	
	
		
			
				|  | @ -29,22 +30,22 @@ public class PatientPrescriptionInfoController extends BaseController {
 | 
	
		
			
				|  |  |      * @param type
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     @RequestMapping(value = "/getPrescriptionInfos")
 | 
	
		
			
				|  |  |     @RequestMapping(value = "/getPrescriptionInfos" , method = RequestMethod.GET)
 | 
	
		
			
				|  |  |     @ResponseBody
 | 
	
		
			
				|  |  |     @ApiOperation(value = "获取长处方信息列表")
 | 
	
		
			
				|  |  |     public String getPrescriptionInfos(@RequestParam(required = true)@ApiParam(name="type",value="1:查询处方;2我的续方;3:续方记录")String type,
 | 
	
		
			
				|  |  |                                        @RequestParam(required = true)@ApiParam(name="state",value="状态")String state,
 | 
	
		
			
				|  |  |                                        @RequestParam(required = true)@ApiParam(name="startDate",value="开始时间")String startDate,
 | 
	
		
			
				|  |  |                                        @RequestParam(required = true)@ApiParam(name="endDate",value="结束时间")String endDate){
 | 
	
		
			
				|  |  |                                        @RequestParam(required = false)@ApiParam(name="isRenewal",value="处方是否可续方:1.是;2.无过滤")String isRenewal,
 | 
	
		
			
				|  |  |                                        @RequestParam(required = false)@ApiParam(name="startDate",value="开始时间")String startDate,
 | 
	
		
			
				|  |  |                                        @RequestParam(required = false)@ApiParam(name="endDate",value="结束时间")String endDate){
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             return write(200, "查询成功!", "data", prescriptionInfoService.getPrescriptionInfos(type,state,startDate,endDate,getRepUID()));
 | 
	
		
			
				|  |  |             return write(200, "查询成功!", "data", prescriptionInfoService.getPrescriptionInfos(type,startDate,endDate,getRepUID(),isRenewal));
 | 
	
		
			
				|  |  |         } catch (Exception e) {
 | 
	
		
			
				|  |  |             error(e);
 | 
	
		
			
				|  |  |             return error(-1, "查询失败!");
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @RequestMapping(value = "/getPrescription")
 | 
	
		
			
				|  |  |     @RequestMapping(value = "/getPrescription" ,method = RequestMethod.GET)
 | 
	
		
			
				|  |  |     @ResponseBody
 | 
	
		
			
				|  |  |     @ApiOperation(value = "获取长处方详细信息")
 | 
	
		
			
				|  |  |     public String getPrescription(@RequestParam(required = true)@ApiParam(name="code",value="处方CODE")String code){
 | 
	
	
		
			
				|  | @ -57,7 +58,7 @@ public class PatientPrescriptionInfoController extends BaseController {
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @RequestMapping(value = "/getContinuedPrescription")
 | 
	
		
			
				|  |  |     @RequestMapping(value = "/getContinuedPrescription", method = RequestMethod.GET)
 | 
	
		
			
				|  |  |     @ResponseBody
 | 
	
		
			
				|  |  |     @ApiOperation(value = "获取续方详细信息")
 | 
	
		
			
				|  |  |     public String getContinuedPrescription(@RequestParam(required = true)@ApiParam(name="code",value="续方CODE")String code){
 | 
	
	
		
			
				|  | @ -69,7 +70,7 @@ public class PatientPrescriptionInfoController extends BaseController {
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @RequestMapping(value = "/getPrescriptionProcess")
 | 
	
		
			
				|  |  |     @RequestMapping(value = "/getPrescriptionProcess" ,method = RequestMethod.GET)
 | 
	
		
			
				|  |  |     @ResponseBody
 | 
	
		
			
				|  |  |     @ApiOperation(value = "获取续方记录详细信息")
 | 
	
		
			
				|  |  |     public String getPrescriptionProcess(@RequestParam(required = true)@ApiParam(name="code",value="续方CODE")String code){
 | 
	
	
		
			
				|  | @ -81,7 +82,7 @@ public class PatientPrescriptionInfoController extends BaseController {
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @RequestMapping(value = "/cancelPrescriotion")
 | 
	
		
			
				|  |  |     @RequestMapping(value = "/cancelPrescriotion" , method = RequestMethod.POST)
 | 
	
		
			
				|  |  |     @ResponseBody
 | 
	
		
			
				|  |  |     @ApiOperation(value = "取消续方")
 | 
	
		
			
				|  |  |     public String cancelPrescriotion(@RequestParam(required = true)@ApiParam(name="code",value="续方CODE")String code){
 |