|  | @ -4523,7 +4523,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                 //发起微信消息模板推送
 | 
	
		
			
				|  |  |                 newConfig.setUrl(newConfig.getUrl() + "" + consultTeam.getConsult());
 | 
	
		
			
				|  |  |                 logger.info("极光消息推送 医生拒诊开始");
 | 
	
		
			
				|  |  |                 wxTempalteJPush("give_score",outpatientDO,consultTeam,"","","","");
 | 
	
		
			
				|  |  |                 wxTempalteJPush("give_score",null,consultTeam,"","","","");
 | 
	
		
			
				|  |  |                 logger.info("眼科微信消息模板推送 服务评价提醒开始");
 | 
	
		
			
				|  |  |             } else if ("systemCancelRemind".equalsIgnoreCase(titelType)) {
 | 
	
		
			
				|  |  |                 //系统24小时取消复诊提醒
 | 
	
	
		
			
				|  | @ -4966,6 +4966,8 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |         }else if (2==type) {//视频复诊
 | 
	
		
			
				|  |  |             //在线复诊
 | 
	
		
			
				|  |  |             sql += " AND room.reservation_type !=3 AND room.consult_type =2";
 | 
	
		
			
				|  |  |         } else if(0==type) {
 | 
	
		
			
				|  |  |             sql += " AND room.consult_type =1";
 | 
	
		
			
				|  |  |         } else {
 | 
	
		
			
				|  |  |             sql += " AND room.reservation_type !=2";
 | 
	
		
			
				|  |  |         }
 | 
	
	
		
			
				|  | @ -11600,26 +11602,26 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |             if(baseJpushTemplateDO!=null){
 | 
	
		
			
				|  |  |                 content = baseJpushTemplateDO.getPushContent();
 | 
	
		
			
				|  |  |                 if(1==consultTeamDo.getType()){
 | 
	
		
			
				|  |  |                     content.replace("{{咨询类型}}","图文咨询");
 | 
	
		
			
				|  |  |                     content= content.replace("{{咨询类型}}","图文咨询");
 | 
	
		
			
				|  |  |                 }else if(9==consultTeamDo.getType()){
 | 
	
		
			
				|  |  |                     content.replace("{{咨询类型}}","图文复诊");
 | 
	
		
			
				|  |  |                     content= content.replace("{{咨询类型}}","图文复诊");
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 else if(16==consultTeamDo.getType()){
 | 
	
		
			
				|  |  |                     content.replace("{{咨询类型}}","视频复诊");
 | 
	
		
			
				|  |  |                     content=  content.replace("{{咨询类型}}","视频复诊");
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 else if(17==consultTeamDo.getType()){
 | 
	
		
			
				|  |  |                     content.replace("{{咨询类型}}","视频咨询");
 | 
	
		
			
				|  |  |                     content=  content.replace("{{咨询类型}}","视频咨询");
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 title=baseJpushTemplateDO.getPushHeader();
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             userId = wlyyOutpatientDO.getConsumer();
 | 
	
		
			
				|  |  |             userId = consultTeamDo.getPatient();
 | 
	
		
			
				|  |  |             jsonObject.put("type",10);
 | 
	
		
			
				|  |  |             jsonObject.put("id",consultTeamDo.getConsult());
 | 
	
		
			
				|  |  |         }else if("video_invite".equalsIgnoreCase(templateCode)){
 | 
	
		
			
				|  |  |             BaseJpushTemplateDO baseJpushTemplateDO = baseJpushTemplateDao.findByCode(templateCode);
 | 
	
		
			
				|  |  |             if(baseJpushTemplateDO!=null){
 | 
	
		
			
				|  |  |                 content = baseJpushTemplateDO.getPushContent();
 | 
	
		
			
				|  |  |                 content.replace("{{医生姓名}}",wlyyOutpatientDO.getDoctorName());
 | 
	
		
			
				|  |  |                 content = baseJpushTemplateDO.getPushContent().replace("{{医生姓名}}",wlyyOutpatientDO.getDoctorName());;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                 title=baseJpushTemplateDO.getPushHeader();
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             userId = wlyyOutpatientDO.getConsumer();
 | 
	
	
		
			
				|  | @ -11629,18 +11631,17 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |             BaseJpushTemplateDO baseJpushTemplateDO = baseJpushTemplateDao.findByCode(templateCode);
 | 
	
		
			
				|  |  |             if(baseJpushTemplateDO!=null){
 | 
	
		
			
				|  |  |                 content = baseJpushTemplateDO.getPushContent();
 | 
	
		
			
				|  |  |                 content.replace("{{医生姓名}}",wlyyOutpatientDO.getDoctorName());
 | 
	
		
			
				|  |  |                 content= content.replace("{{医生姓名}}",wlyyOutpatientDO.getDoctorName());
 | 
	
		
			
				|  |  |                 title=baseJpushTemplateDO.getPushHeader().replace("{{医生姓名}}",wlyyOutpatientDO.getDoctorName());
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             userId = wlyyOutpatientDO.getConsumer();
 | 
	
		
			
				|  |  |             jsonObject.put("type",31);
 | 
	
		
			
				|  |  |             jsonObject.put("id",wlyyOutpatientDO.getId());
 | 
	
		
			
				|  |  |             isDoctor="1";
 | 
	
		
			
				|  |  |         } else if("prescription_pay".equalsIgnoreCase(templateCode)){
 | 
	
		
			
				|  |  |             BaseJpushTemplateDO baseJpushTemplateDO = baseJpushTemplateDao.findByCode(templateCode);
 | 
	
		
			
				|  |  |             if(baseJpushTemplateDO!=null){
 | 
	
		
			
				|  |  |                 content = baseJpushTemplateDO.getPushContent();
 | 
	
		
			
				|  |  |                 content.replace("{{患者姓名}}",wlyyOutpatientDO.getPatientName());
 | 
	
		
			
				|  |  |                 content= content.replace("{{患者姓名}}",wlyyOutpatientDO.getPatientName());
 | 
	
		
			
				|  |  |                 title=baseJpushTemplateDO.getPushHeader();
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             userId = wlyyOutpatientDO.getConsumer();
 | 
	
	
		
			
				|  | @ -11702,7 +11703,6 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |                     title=baseJpushTemplateDO.getPushHeader().replace("{{咨询类型}}","家医咨询");
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             isDoctor="1";
 | 
	
		
			
				|  |  |             userId = wlyyOutpatientDO.getConsumer();
 | 
	
		
			
				|  |  |             jsonObject.put("type",12);
 | 
	
		
			
				|  |  |             jsonObject.put("id",wlyyOutpatientDO.getId());
 | 
	
	
		
			
				|  | @ -11750,10 +11750,10 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |             BaseJpushTemplateDO baseJpushTemplateDO = baseJpushTemplateDao.findByCode(templateCode);
 | 
	
		
			
				|  |  |             if(baseJpushTemplateDO!=null){
 | 
	
		
			
				|  |  |                 content = baseJpushTemplateDO.getPushContent();
 | 
	
		
			
				|  |  |                 content.replace("{{医生姓名}}",wlyyOutpatientDO.getDoctorName()).replace("{患者姓名}}",wlyyOutpatientDO.getPatientName());
 | 
	
		
			
				|  |  |                 content=  content.replace("{{医生姓名}}",wlyyOutpatientDO.getDoctorName()).replace("{患者姓名}}",wlyyOutpatientDO.getPatientName());
 | 
	
		
			
				|  |  |                 title=baseJpushTemplateDO.getPushHeader().replace("{{患者姓名}}",wlyyOutpatientDO.getDoctorName());
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             userId = wlyyOutpatientDO.getConsumer();
 | 
	
		
			
				|  |  |             userId = wlyyOutpatientDO.getDoctor();
 | 
	
		
			
				|  |  |             jsonObject.put("type",8);
 | 
	
		
			
				|  |  |             jsonObject.put("id",prescriptionId);
 | 
	
		
			
				|  |  |             isDoctor="1";
 | 
	
	
		
			
				|  | @ -11761,7 +11761,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |             BaseJpushTemplateDO baseJpushTemplateDO = baseJpushTemplateDao.findByCode(templateCode);
 | 
	
		
			
				|  |  |             if(baseJpushTemplateDO!=null){
 | 
	
		
			
				|  |  |                 content = baseJpushTemplateDO.getPushContent();
 | 
	
		
			
				|  |  |                 content.replace("{{患者姓名}}",wlyyOutpatientDO.getPatientName()).replace("{{药品名称}}",drugName)
 | 
	
		
			
				|  |  |                 content=  content.replace("{{患者姓名}}",wlyyOutpatientDO.getPatientName()).replace("{{药品名称}}",drugName)
 | 
	
		
			
				|  |  |                 .replace("{{物流状态}}",mailStatus).replace("{{运单号}}",mailNo);
 | 
	
		
			
				|  |  |                 title=baseJpushTemplateDO.getPushHeader();
 | 
	
		
			
				|  |  |             }
 |