|  | @ -16,7 +16,9 @@ import com.yihu.jw.entity.base.org.BaseOrgDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.patient.BasePatientDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.door.*;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.hospital.message.SystemMessageDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.hospital.prescription.WlyyPrescriptionDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.hospital.message.dao.SystemMessageDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.hospital.prescription.dao.PrescriptionDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.im.dao.ConsultDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.im.util.ImUtil;
 | 
	
		
			
				|  |  | import com.yihu.jw.org.dao.BaseOrgDao;
 | 
	
	
		
			
				|  | @ -169,6 +171,8 @@ public class WlyyDoorServiceOrderService extends BaseJpaService<WlyyDoorServiceO
 | 
	
		
			
				|  |  |     private String wxId;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private SystemMessageDao systemMessageDao;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private PrescriptionDao prescriptionDao;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 上门服务工单服务基本信息
 | 
	
	
		
			
				|  | @ -2549,6 +2553,11 @@ public class WlyyDoorServiceOrderService extends BaseJpaService<WlyyDoorServiceO
 | 
	
		
			
				|  |  |         orderDO.setPrescriptionCode(prescriptionCode);
 | 
	
		
			
				|  |  |         orderDO.setPrescriptionTime(new Date());
 | 
	
		
			
				|  |  |         orderDO.setPrescriptionStatus(1);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         WlyyPrescriptionDO prescriptionDO = prescriptionDao.findOne(prescriptionCode);
 | 
	
		
			
				|  |  |         if(prescriptionDO!=null){
 | 
	
		
			
				|  |  |             orderDO.setOutpatientId(prescriptionDO.getOutpatientId());
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         wlyyDoorServiceOrderDao.save(orderDO);
 | 
	
		
			
				|  |  |         //非代预约才发送im消息
 | 
	
		
			
				|  |  |         if(orderDO.getType() != null && orderDO.getType() != 3) {
 |