| 
					
				 | 
			
			
				@ -5,11 +5,13 @@ import com.yihu.jw.entity.order.BusinessOrderDO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.hospital.prescription.service.entrance.YkyyEntranceService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.hospital.ykyy.service.YkyyService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.order.BusinessOrderService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.restmodel.web.Envelop; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.restmodel.web.ListEnvelop; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.restmodel.web.ObjEnvelop; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.rm.hospital.BaseHospitalRequestMapping; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.rm.patient.PatientRequestMapping; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.wechat.service.WxTemplateService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import io.swagger.annotations.Api; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import io.swagger.annotations.ApiOperation; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import io.swagger.annotations.ApiParam; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -40,6 +42,8 @@ public class YkyyController extends EnvelopRestEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private BusinessOrderService businessOrderService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private YkyyEntranceService ykyyEntranceService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private WxTemplateService wxTemplateService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @GetMapping(value = "/selectCardList") 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -285,8 +289,29 @@ public class YkyyController extends EnvelopRestEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return ObjEnvelop.getError(e.getMessage()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @ResponseBody 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @ApiOperation("发送微信模版消息") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @RequestMapping(value = BaseHospitalRequestMapping.WxPay.sendWxTemple, method = {RequestMethod.GET, RequestMethod.POST}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public Envelop sendWxTemple(@ApiParam(name = "userName", value = "居民名称") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              @RequestParam(value = "userName", required = false,defaultValue = "") String userName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                          @ApiParam(name = "senderName", value = "发送人名称") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              @RequestParam(value = "senderName", required = false,defaultValue = "") String senderName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                          @ApiParam(name = "idCard", value = "身份证") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              @RequestParam(value = "idCard", required = false,defaultValue = "") String idCard, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                          @ApiParam(name = "phone", value = "居民手机") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              @RequestParam(value = "phone", required = false,defaultValue = "") String phone, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                          @ApiParam(name = "title", value = "标题") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              @RequestParam(value = "title", required = false,defaultValue = "") String title, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                          @ApiParam(name = "content", value = "简介") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              @RequestParam(value = "content", required = false,defaultValue = "") String content, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                          @ApiParam(name = "contentString", value = "回复内容") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              @RequestParam(value = "contentString", required = false,defaultValue = "") String contentString, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                          @ApiParam(name = "url", value = "跳转URL") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                              @RequestParam(value = "url", required = false,defaultValue = "") String url 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    )throws Exception  { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        wxTemplateService.sendWxTemple(userName,senderName,idCard,phone,title,content,contentString,url); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return success("操作成功"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				} 
			 |