|  | @ -942,45 +942,47 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |                                         logger.info("处方结算成功"+pushPayLog+"====="+waitPayDetailVO.getRecipeNo());
 | 
	
		
			
				|  |  |                                     }
 | 
	
		
			
				|  |  |                                 }
 | 
	
		
			
				|  |  |                                 //判断检查订单
 | 
	
		
			
				|  |  |                                 List<BaseNatAppointmentDO> baseNatAppointmentDOS = baseNatAppointmentDao.findByRealOrderList(waitPayDetailVO.getRecipeNo());
 | 
	
		
			
				|  |  |                                 for (BaseNatAppointmentDO natAppointmentDO:baseNatAppointmentDOS){
 | 
	
		
			
				|  |  |                                     natAppointmentDO.setPayStatus("1");
 | 
	
		
			
				|  |  |                                     baseNatAppointmentDao.save(natAppointmentDO);
 | 
	
		
			
				|  |  |                                     //发送支付成功通知
 | 
	
		
			
				|  |  |                                     String pushPayLog = null;
 | 
	
		
			
				|  |  |                                     String fee = waitPayDetailVO.getFee();
 | 
	
		
			
				|  |  |                                     if (wxId.equalsIgnoreCase("xm_zsyy_wx")){
 | 
	
		
			
				|  |  |                                         String title="您在厦门大学附属中山医院有一笔交易已支付完成!";
 | 
	
		
			
				|  |  |                                         pushPayLog = payInfoNoticeService.pushPrescriptionPayAndHsjc(natAppointmentDO.getPatientId(),natAppointmentDO.getDoctorName(),voucherNo,natAppointmentDO.getId()+"",fee,title,null,waitPayDetailVO.getRecipeNo());
 | 
	
		
			
				|  |  |                                     }
 | 
	
		
			
				|  |  |                                     //发送预约成功通知
 | 
	
		
			
				|  |  |                                     String name= natAppointmentDO.getName();
 | 
	
		
			
				|  |  |                                     String idcard = natAppointmentDO.getCardNo();
 | 
	
		
			
				|  |  |                                     String mobile = natAppointmentDO.getMobile();
 | 
	
		
			
				|  |  |                                     String url = "https://hlwyy.xmzsh.com/hlwyy/ims-wx/#/nucleicTest/detail?id="+natAppointmentDO.getId();
 | 
	
		
			
				|  |  |                                     String date = DateUtil.dateToStrLong(natAppointmentDO.getAppointmentTime());
 | 
	
		
			
				|  |  |                                     String first = "尊敬的用户"+name+",您已完成线上自助核酸检测开单预约";
 | 
	
		
			
				|  |  |                                     String contentMsg = "申请人:"+name+"\r\n 预约时间:"+date+" \r\n发票流水号:"+waitPayDetailVO.getRecipeNo();
 | 
	
		
			
				|  |  |                                     String remark="备注:1、请您持核酸开单预约信息和发票流水号、医保卡/就诊卡/电子健康卡,提前5分钟至我院五号楼北侧(急诊部后侧)核酸检测点领取标本试管窗口绑定检测。\r\n" +
 | 
	
		
			
				|  |  |                                             "2、核酸检测标本采集24小时后出具报告。请关注厦门大学附属中山医院微信公众号查询;如需打印,请至厦门大学附属中山医院核酸检测点自助机打印。";
 | 
	
		
			
				|  |  |                                     String responseMsg="";
 | 
	
		
			
				|  |  |                                     if ("xm_zsyy_wx".equalsIgnoreCase(wxId)) {
 | 
	
		
			
				|  |  |                                         responseMsg = entranceService.ehospitalNotice(
 | 
	
		
			
				|  |  |                                                 name,
 | 
	
		
			
				|  |  |                                                 idcard,
 | 
	
		
			
				|  |  |                                                 mobile,
 | 
	
		
			
				|  |  |                                                 first,
 | 
	
		
			
				|  |  |                                                 url,
 | 
	
		
			
				|  |  |                                                 contentMsg,
 | 
	
		
			
				|  |  |                                                 remark);
 | 
	
		
			
				|  |  |                                         logger.info("中山发送模板消息返回结果="+responseMsg);
 | 
	
		
			
				|  |  |                                         System.out.println("结束发送模板消息");
 | 
	
		
			
				|  |  |                                     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                                 }
 | 
	
		
			
				|  |  |                             }
 | 
	
		
			
				|  |  |                             for (WaitPayDetailVO waitPayDetailVO:listWPD){
 | 
	
		
			
				|  |  |                                 if (waitPayDetailVO.getItemName().contains("鼻/咽拭子")){
 | 
	
		
			
				|  |  |                                     //判断检查订单
 | 
	
		
			
				|  |  |                                     List<BaseNatAppointmentDO> baseNatAppointmentDOS = baseNatAppointmentDao.findByRealOrderList(waitPayDetailVO.getRecipeNo());
 | 
	
		
			
				|  |  |                                     for (BaseNatAppointmentDO natAppointmentDO:baseNatAppointmentDOS){
 | 
	
		
			
				|  |  |                                         natAppointmentDO.setPayStatus("1");
 | 
	
		
			
				|  |  |                                         baseNatAppointmentDao.save(natAppointmentDO);
 | 
	
		
			
				|  |  |                                         //发送支付成功通知
 | 
	
		
			
				|  |  |                                         String pushPayLog = null;
 | 
	
		
			
				|  |  |                                         String fee = waitPayDetailVO.getFee();
 | 
	
		
			
				|  |  |                                         if (wxId.equalsIgnoreCase("xm_zsyy_wx")){
 | 
	
		
			
				|  |  |                                             String title="您在厦门大学附属中山医院有一笔交易已支付完成!";
 | 
	
		
			
				|  |  |                                             pushPayLog = payInfoNoticeService.pushPrescriptionPayAndHsjc(natAppointmentDO.getPatientId(),natAppointmentDO.getDoctorName(),waitPayDetailVO.getVoucherNo(),natAppointmentDO.getId()+"",fee,title,null,waitPayDetailVO.getRecipeNo());
 | 
	
		
			
				|  |  |                                         }
 | 
	
		
			
				|  |  |                                         //发送预约成功通知
 | 
	
		
			
				|  |  |                                         String name= natAppointmentDO.getName();
 | 
	
		
			
				|  |  |                                         String idcard = natAppointmentDO.getCardNo();
 | 
	
		
			
				|  |  |                                         String mobile = natAppointmentDO.getMobile();
 | 
	
		
			
				|  |  |                                         String url = "https://hlwyy.xmzsh.com/hlwyy/ims-wx/#/nucleicTest/detail?id="+natAppointmentDO.getId();
 | 
	
		
			
				|  |  |                                         String date = DateUtil.dateToStrLong(natAppointmentDO.getAppointmentTime());
 | 
	
		
			
				|  |  |                                         String first = "尊敬的用户"+name+",您已完成线上自助核酸检测开单预约";
 | 
	
		
			
				|  |  |                                         String contentMsg = "申请人:"+name+"\r\n 预约时间:"+date+" \r\n发票流水号:"+waitPayDetailVO.getRecipeNo();
 | 
	
		
			
				|  |  |                                         String remark="1、请您持核酸开单预约信息和发票流水号、医保卡/就诊卡/电子健康卡,提前5分钟至我院五号楼北侧(急诊部后侧)核酸检测点领取标本试管窗口绑定检测。\r\n" +
 | 
	
		
			
				|  |  |                                                 "2、核酸检测标本采集24小时后出具报告。请关注厦门大学附属中山医院微信公众号查询;如需打印,请至厦门大学附属中山医院核酸检测点自助机打印。";
 | 
	
		
			
				|  |  |                                         String responseMsg="";
 | 
	
		
			
				|  |  |                                         if ("xm_zsyy_wx".equalsIgnoreCase(wxId)) {
 | 
	
		
			
				|  |  |                                             responseMsg = entranceService.ehospitalNotice(
 | 
	
		
			
				|  |  |                                                     name,
 | 
	
		
			
				|  |  |                                                     idcard,
 | 
	
		
			
				|  |  |                                                     mobile,
 | 
	
		
			
				|  |  |                                                     first,
 | 
	
		
			
				|  |  |                                                     url,
 | 
	
		
			
				|  |  |                                                     contentMsg,
 | 
	
		
			
				|  |  |                                                     remark);
 | 
	
		
			
				|  |  |                                             logger.info("中山发送模板消息返回结果="+responseMsg);
 | 
	
		
			
				|  |  |                                             System.out.println("结束发送模板消息");
 | 
	
		
			
				|  |  |                                         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                                     }
 | 
	
		
			
				|  |  |                                 }
 | 
	
		
			
				|  |  |                                 if (waitPayDetailVO.getItemName().equalsIgnoreCase("互联网医院复诊诊查费")){
 | 
	
		
			
				|  |  |                                     logger.info(waitPayDetailVO.getRecipeNo());
 | 
	
		
			
				|  |  |                                     List<WlyyPrescriptionDO> prescriptionDOList = prescriptionDao.findByRealOrderList(waitPayDetailVO.getRecipeNo());
 |