|  | @ -148,6 +148,7 @@ import java.lang.Boolean;
 | 
	
		
			
				|  |  | import java.lang.management.ManagementFactory;
 | 
	
		
			
				|  |  | import java.math.BigDecimal;
 | 
	
		
			
				|  |  | import java.net.URL;
 | 
	
		
			
				|  |  | import java.net.URLEncoder;
 | 
	
		
			
				|  |  | import java.text.DecimalFormat;
 | 
	
		
			
				|  |  | import java.text.ParseException;
 | 
	
		
			
				|  |  | import java.text.SimpleDateFormat;
 | 
	
	
		
			
				|  | @ -5278,7 +5279,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 newConfig.setKeyword2(outpatientDO.getHospitalName());
 | 
	
		
			
				|  |  |                 newConfig.setKeyword3(outpatientDO.getDoctorName());
 | 
	
		
			
				|  |  |                 newConfig.setPagepath(newConfig.getPagepath() + "" + outpatientDO.getId());
 | 
	
		
			
				|  |  |                 String path = "returnVisit/record?outpatientId="+outpatientDO.getId();
 | 
	
		
			
				|  |  |                 newConfig.setPagepath(newConfig.getPagepath()+URLEncoder.encode(path));
 | 
	
		
			
				|  |  |                 //发起微信消息模板推送
 | 
	
		
			
				|  |  |                 newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
 | 
	
		
			
				|  |  |                 logger.info("眼科微信消息模板推送 就诊支付提醒开始");
 | 
	
	
		
			
				|  | @ -5311,7 +5313,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 newConfig.setKeyword2(outpatientDO.getHospitalName());
 | 
	
		
			
				|  |  |                 newConfig.setKeyword3(outpatientDO.getDoctorName());
 | 
	
		
			
				|  |  |                 newConfig.setPagepath(newConfig.getPagepath() + "" + outpatientDO.getId());
 | 
	
		
			
				|  |  |                 String path = "returnVisit/record?outpatientId="+outpatientDO.getId();
 | 
	
		
			
				|  |  |                 newConfig.setPagepath(newConfig.getPagepath() +URLEncoder.encode(path));
 | 
	
		
			
				|  |  |                 //发起微信消息模板推送
 | 
	
		
			
				|  |  |                 newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
 | 
	
		
			
				|  |  |             } else if ("doctorPick".equalsIgnoreCase(titelType)) {
 | 
	
	
		
			
				|  | @ -5338,7 +5341,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                 newConfig.setRemark(config.getRemark().replace("key1",outpatientDO.getDoctorName()));
 | 
	
		
			
				|  |  |                 newConfig.setKeyword2(outpatientDO.getHospitalName());
 | 
	
		
			
				|  |  |                 newConfig.setKeyword3(outpatientDO.getDoctorName());
 | 
	
		
			
				|  |  |                 newConfig.setPagepath(newConfig.getPagepath() + "" + outpatientDO.getId());
 | 
	
		
			
				|  |  |                 String path = "returnVisit/record?outpatientId="+outpatientDO.getId();
 | 
	
		
			
				|  |  |                 newConfig.setPagepath(newConfig.getPagepath() +URLEncoder.encode(path));
 | 
	
		
			
				|  |  |                 //发起微信消息模板推送
 | 
	
		
			
				|  |  |                 newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
 | 
	
		
			
				|  |  |             }else if ("patientCancel".equalsIgnoreCase(titelType)) {
 | 
	
	
		
			
				|  | @ -5358,7 +5362,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                 newConfig.setKeyword1( outpatientDO.getHospitalName());
 | 
	
		
			
				|  |  |                 newConfig.setKeyword2(outpatientDO.getDoctorName());
 | 
	
		
			
				|  |  |                 newConfig.setKeyword3(outpatientDO.getFee()==null?"0":outpatientDO.getFee().toString());
 | 
	
		
			
				|  |  |                 newConfig.setPagepath(newConfig.getPagepath() + "" + outpatientDO.getId());
 | 
	
		
			
				|  |  |                 String path = "returnVisit/record?outpatientId="+outpatientDO.getId();
 | 
	
		
			
				|  |  |                 newConfig.setPagepath(newConfig.getPagepath() + URLEncoder.encode(path));
 | 
	
		
			
				|  |  |                 //发起微信消息模板推送
 | 
	
		
			
				|  |  |                 newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
 | 
	
		
			
				|  |  |                 logger.info("眼科微信消息模板推送");
 | 
	
	
		
			
				|  | @ -5371,7 +5376,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                 newConfig.setKeyword1( "处方支付");
 | 
	
		
			
				|  |  |                 newConfig.setKeyword2(outpatientDO.getHospitalName());
 | 
	
		
			
				|  |  |                 newConfig.setKeyword3(outpatientDO.getDoctorName());
 | 
	
		
			
				|  |  |                 newConfig.setPagepath(newConfig.getPagepath() + "" + outpatientDO.getId());
 | 
	
		
			
				|  |  |                 String path = "returnVisit/preChat?type=16&outpatientId="+outpatientDO.getId();
 | 
	
		
			
				|  |  |                 newConfig.setPagepath(newConfig.getPagepath()+URLEncoder.encode(path) );
 | 
	
		
			
				|  |  |                 //发起微信消息模板推送
 | 
	
		
			
				|  |  |                 newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
 | 
	
		
			
				|  |  |                 logger.info("眼科微信消息模板推送 处方支付提醒开始");
 | 
	
	
		
			
				|  | @ -5393,7 +5399,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                 newConfig.setKeyword3( outpatientDO.getDoctorName());
 | 
	
		
			
				|  |  |                 newConfig.setKeyword4(DateUtil.dateToStrLong(outpatientDO.getRegisterDate()));
 | 
	
		
			
				|  |  |                 newConfig.setKeyword5(generalDoctorWaitingNumber(doctorDO.getId(), wxId, outpatientId));
 | 
	
		
			
				|  |  |                 newConfig.setPagepath(newConfig.getPagepath() + "" + outpatientDO.getId());
 | 
	
		
			
				|  |  |                 String path = "returnVisit/record?outpatientId="+outpatientDO.getId();
 | 
	
		
			
				|  |  |                 newConfig.setPagepath(newConfig.getPagepath() +URLEncoder.encode(path));
 | 
	
		
			
				|  |  |                 //发起微信消息模板推送
 | 
	
		
			
				|  |  |                 newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
 | 
	
		
			
				|  |  |                 logger.info("眼科微信消息模板推送 视频问诊预约提醒开始");
 | 
	
	
		
			
				|  | @ -5405,7 +5412,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                 newConfig.setFirst(config.getFirst().replaceFirst("key1", consPatientDO.getName()));
 | 
	
		
			
				|  |  |                 newConfig.setKeyword2(hospitalDO.getOrgName());
 | 
	
		
			
				|  |  |                 newConfig.setKeyword3(consDoctorDO.getName());
 | 
	
		
			
				|  |  |                 newConfig.setPagepath(newConfig.getPagepath() + "" + consultTeam.getConsult());
 | 
	
		
			
				|  |  |                 String path = "fuwupingjia?consultCode="+consultTeam.getConsult();
 | 
	
		
			
				|  |  |                 newConfig.setPagepath(newConfig.getPagepath()+URLEncoder.encode(path));
 | 
	
		
			
				|  |  |                 //发起微信消息模板推送
 | 
	
		
			
				|  |  |                 newConfig.setUrl(newConfig.getUrl() + "" + consultTeam.getConsult());
 | 
	
		
			
				|  |  |                 logger.info("极光消息推送 医生拒诊开始");
 | 
	
	
		
			
				|  | @ -5429,7 +5437,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                 newConfig.setKeyword1( outpatientDO.getHospitalName());
 | 
	
		
			
				|  |  |                 newConfig.setKeyword2(outpatientDO.getDoctorName());
 | 
	
		
			
				|  |  |                 newConfig.setKeyword3(outpatientDO.getFee()==null?"0":outpatientDO.getFee().toString());
 | 
	
		
			
				|  |  |                 newConfig.setPagepath(newConfig.getPagepath() + "" + outpatientDO.getId());
 | 
	
		
			
				|  |  |                 String path = "returnVisit/record?outpatientId="+outpatientDO.getId();
 | 
	
		
			
				|  |  |                 newConfig.setPagepath(newConfig.getPagepath() +URLEncoder.encode(path));
 | 
	
		
			
				|  |  |                 //发起微信消息模板推送
 | 
	
		
			
				|  |  |                 newConfig.setUrl(newConfig.getUrl() + "" + outpatientDO.getId());
 | 
	
		
			
				|  |  |                 logger.info("眼科微信消息模板推送 系统拒诊开始");
 | 
	
	
		
			
				|  | @ -5582,7 +5591,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |             newConfig.setKeyword3(mailNo);
 | 
	
		
			
				|  |  |             newConfig.setKeyword4(remindMsg);
 | 
	
		
			
				|  |  |             newConfig.setRemark(config.getRemark());
 | 
	
		
			
				|  |  |             newConfig.setPagepath(newConfig.getPagepath().replace("key1",outpatientId).replace("key2",prescriptionId));
 | 
	
		
			
				|  |  |             String path = "returnVisit/logistics?outpatientId="+outpatientId+"&prescriptionCode="+prescriptionId;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             newConfig.setPagepath(newConfig.getPagepath()+ URLEncoder.encode(path));
 | 
	
		
			
				|  |  |             newConfig.setUrl(newConfig.getUrl().replace("key1",outpatientId).replace("key2",prescriptionId));
 | 
	
		
			
				|  |  |             logger.info("=======setUrl========" + newConfig.getUrl());
 | 
	
		
			
				|  |  |             WxAccessTokenDO wxAccessTokenDO = wxAccessTokenService.getWxAccessTokenById(wechatId);
 |