| 
					
				 | 
			
			
				@ -11594,7 +11594,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String title=""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String isDoctor="0";//0患者 1医生 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if("give_score".equalsIgnoreCase(templateCode)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if("give_score".equalsIgnoreCase(templateCode)){//评分 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            BaseJpushTemplateDO baseJpushTemplateDO = baseJpushTemplateDao.findByCode(templateCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(baseJpushTemplateDO!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                content = baseJpushTemplateDO.getPushContent(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -11614,7 +11614,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            userId = consultTeamDo.getPatient(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("type",10); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("id",consultTeamDo.getConsult()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else if("video_invite".equalsIgnoreCase(templateCode)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else if("video_invite".equalsIgnoreCase(templateCode)){//视频邀请 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            BaseJpushTemplateDO baseJpushTemplateDO = baseJpushTemplateDao.findByCode(templateCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(baseJpushTemplateDO!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                content = baseJpushTemplateDO.getPushContent().replace("{{医生姓名}}",wlyyOutpatientDO.getDoctorName());; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -11624,7 +11624,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            userId = wlyyOutpatientDO.getConsumer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("type",30); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("id",wlyyOutpatientDO.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else if("consult_remind".equalsIgnoreCase(templateCode)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else if("consult_remind".equalsIgnoreCase(templateCode)){//医生向患者发消息提醒 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            BaseJpushTemplateDO baseJpushTemplateDO = baseJpushTemplateDao.findByCode(templateCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(baseJpushTemplateDO!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                content = baseJpushTemplateDO.getPushContent(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -11635,7 +11635,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("type",31); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("id",wlyyOutpatientDO.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else if("consult_remind_doctor".equalsIgnoreCase(templateCode)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else if("consult_remind_doctor".equalsIgnoreCase(templateCode)){//患者向医生发消息提醒 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            BaseJpushTemplateDO baseJpushTemplateDO = baseJpushTemplateDao.findByCode(templateCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(baseJpushTemplateDO!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                //content = baseJpushTemplateDO.getPushContent(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -11648,7 +11648,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("consultType",consultTeamDo.getType()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("patientName",consultTeamDo.getName()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            isDoctor = "1"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }  else if("prescription_pay".equalsIgnoreCase(templateCode)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }  else if("prescription_pay".equalsIgnoreCase(templateCode)){//处方支付提醒 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            BaseJpushTemplateDO baseJpushTemplateDO = baseJpushTemplateDao.findByCode(templateCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(baseJpushTemplateDO!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                content = baseJpushTemplateDO.getPushContent(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -11659,7 +11659,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("type",6); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("id",prescriptionId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("outpatientId",wlyyOutpatientDO.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } else if("outpatient_pay".equalsIgnoreCase(templateCode)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } else if("outpatient_pay".equalsIgnoreCase(templateCode)){//诊查费支付提醒 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            BaseJpushTemplateDO baseJpushTemplateDO = baseJpushTemplateDao.findByCode(templateCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(baseJpushTemplateDO!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if ("1".equalsIgnoreCase(wlyyOutpatientDO.getOutpatientType())&&"1".equalsIgnoreCase(wlyyOutpatientDO.getType())){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -11691,7 +11691,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            userId = wlyyOutpatientDO.getConsumer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("type",11); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("id",wlyyOutpatientDO.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } else if("cancel_remind".equalsIgnoreCase(templateCode)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } else if("cancel_remind".equalsIgnoreCase(templateCode)){//医生取消接诊提醒 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            BaseJpushTemplateDO baseJpushTemplateDO = baseJpushTemplateDao.findByCode(templateCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(baseJpushTemplateDO!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if ("1".equalsIgnoreCase(wlyyOutpatientDO.getOutpatientType())&&"1".equalsIgnoreCase(wlyyOutpatientDO.getType())){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -11717,7 +11717,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            userId = wlyyOutpatientDO.getConsumer(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("type",12); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("id",wlyyOutpatientDO.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else if("outpatient_remind".equalsIgnoreCase(templateCode)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else if("outpatient_remind".equalsIgnoreCase(templateCode)){//患者发起复诊向医生推消息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            BaseJpushTemplateDO baseJpushTemplateDO = baseJpushTemplateDao.findByCode(templateCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(baseJpushTemplateDO!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if ("1".equalsIgnoreCase(wlyyOutpatientDO.getOutpatientType())&&"1".equalsIgnoreCase(wlyyOutpatientDO.getType())){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -11757,7 +11757,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            userId = wlyyOutpatientDO.getDoctor(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("id",wlyyOutpatientDO.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            isDoctor="1"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } else if("prescription_refuse".equalsIgnoreCase(templateCode)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } else if("prescription_refuse".equalsIgnoreCase(templateCode)){//处方审方失败提醒 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            BaseJpushTemplateDO baseJpushTemplateDO = baseJpushTemplateDao.findByCode(templateCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(baseJpushTemplateDO!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                content = baseJpushTemplateDO.getPushContent(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -11768,7 +11768,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("type",8); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            jsonObject.put("id",prescriptionId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            isDoctor="1"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } else if("logistics_remind".equalsIgnoreCase(templateCode)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } else if("logistics_remind".equalsIgnoreCase(templateCode)){//物流消息提醒 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            BaseJpushTemplateDO baseJpushTemplateDO = baseJpushTemplateDao.findByCode(templateCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(baseJpushTemplateDO!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                content = baseJpushTemplateDO.getPushContent(); 
			 |