| 
					
				 | 
			
			
				@ -11943,7 +11943,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                baseNatAppointmentDO.setDoctorId(staffNo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                baseNatAppointmentDO.setConsumer(consumer); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                baseNatAppointmentDO.setDoctorName(staffName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                baseNatAppointmentDO.setAppointmentTime(new Date()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                baseNatAppointmentDO.setAppointmentTime(DateUtil.strToDateLong(natTime)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                baseNatAppointmentDO= baseNatAppointmentDao.save(baseNatAppointmentDO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                logger.info("BaseNatAppointmentDO保存结束"+baseNatAppointmentDO.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                //添加订单 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -13214,4 +13214,38 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param receiverType 1医生、2患者 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param oupatientId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @param sendType 1系统、2短信、3全部 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String sendMessageManger(String receiver,String receiverType,String oupatientId,String businessType,String sendType){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String msg = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        WlyyOutpatientDO wlyyOutpatientDO = outpatientDao.findById(oupatientId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        BaseDoctorDO baseDoctorDO = baseDoctorDao.findById(wlyyOutpatientDO.getDoctor()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (StringUtils.isNoneBlank(receiverType)&&receiver.equalsIgnoreCase("1")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (sendType.equalsIgnoreCase("2")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                ykyySMSService.sendSmsByTempcode("outpatient_remind",wlyyOutpatientDO,null,baseDoctorDO.getMobile()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }else if (sendType.equalsIgnoreCase("1")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                wxTempalteJPush("remind_doctor_pickup",wlyyOutpatientDO,null,"","","",""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }else if (sendType.equalsIgnoreCase("3")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                ykyySMSService.sendSmsByTempcode("outpatient_remind",wlyyOutpatientDO,null,baseDoctorDO.getMobile()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                wxTempalteJPush("remind_doctor_pickup",wlyyOutpatientDO,null,"","","",""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else if (StringUtils.isNoneBlank(receiverType)&&receiver.equalsIgnoreCase("2")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (sendType.equalsIgnoreCase("2")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                ykyySMSService.sendSmsByTempcode("outpatient_remind",wlyyOutpatientDO,null,baseDoctorDO.getMobile()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }else if (sendType.equalsIgnoreCase("1")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                wxTempalteJPush("remind_doctor_pickup",wlyyOutpatientDO,null,"","","",""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }else if (sendType.equalsIgnoreCase("3")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                ykyySMSService.sendSmsByTempcode("outpatient_remind",wlyyOutpatientDO,null,baseDoctorDO.getMobile()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                wxTempalteJPush("remind_doctor_pickup",wlyyOutpatientDO,null,"","","",""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return "成功"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				} 
			 |