| 
					
				 | 
			
			
				@ -3,8 +3,10 @@ package com.yihu.jw.hospital.endpoint.consult; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.alibaba.fastjson.JSONArray; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.alibaba.fastjson.JSONObject; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.doctor.dao.BaseDoctorDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.doctor.dao.BaseDoctorRoleDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.doctor.service.BaseDoctorInfoService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.entity.base.doctor.BaseDoctorDO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.entity.base.doctor.BaseDoctorRoleDO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.entity.base.im.ConsultDo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.entity.base.im.ConsultTeamDo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.entity.base.patient.BasePatientDO; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -105,6 +107,8 @@ public class PatientConsultEndpoint extends EnvelopRestEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					private ConsultDao consultDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					@Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					private YkyyService ykyyService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					@Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					private BaseDoctorRoleDao doctorRoleDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					@Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					public ImUtil imUtil; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -828,6 +832,15 @@ public class PatientConsultEndpoint extends EnvelopRestEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						session_id = imService.getPatientGuaidenceConsult(sender_id,session_id,type); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String result = imService.patientGuaidenceAppend(sender_id,sender_name,session_id,content_type,content,"1"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						List<BaseDoctorRoleDO> doctorRoleDOS = doctorRoleDao.findByRoleCode("guidance"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						for (BaseDoctorRoleDO doctorRoleDO:doctorRoleDOS){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							System.out.println("发送外层SOCKET消息:通知医生导诊"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							JSONObject object = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							object.put("socket_sms_type",13); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							object.put("relation_code",session_id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							imService.sendWaiSocketMessage(doctorRoleDO.getDoctorCode(),sender_id,object.toString(),"1"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						return success(result); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					 
			 |