|  | @ -1,6 +1,7 @@
 | 
	
		
			
				|  |  | package com.yihu.wlyy.web.doctor.prescription;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import com.yihu.wlyy.aop.ObserverRequired;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.entity.patient.prescription.PrescriptionDispensaryCode;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.service.app.prescription.PrescriptionDispensaryCodeService;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.service.app.prescription.PrescriptionExpressageService;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.service.app.prescription.PrescriptionInfoService;
 | 
	
	
		
			
				|  | @ -154,4 +155,23 @@ public class PrescriptionCodeController extends BaseController{
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 扫码
 | 
	
		
			
				|  |  |      * @param code
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     @RequestMapping(value = "/dispensaryCode/scanQrcode",method = RequestMethod.GET)
 | 
	
		
			
				|  |  |     @ObserverRequired
 | 
	
		
			
				|  |  |     @ResponseBody
 | 
	
		
			
				|  |  |     public String scanQrcode(
 | 
	
		
			
				|  |  |             @RequestParam(value = "code",required = true) String code){
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             PrescriptionDispensaryCode prescriptionDispensaryCode = prescriptionDispensaryCodeService.scanQrcode(code);
 | 
	
		
			
				|  |  |             return write(200, "扫码成功!", "data", prescriptionDispensaryCode);
 | 
	
		
			
				|  |  |         } catch (Exception e) {
 | 
	
		
			
				|  |  |             error(e);
 | 
	
		
			
				|  |  |             return error(-1, e.getMessage());
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | }
 |