Kaynağa Gözat

视频复诊,协同门诊发送外层SOCKET消息

huangwenjie 5 yıl önce
ebeveyn
işleme
832e3c4773

+ 12 - 0
business/im-service/src/main/java/com/yihu/jw/im/service/ImService.java

@ -1062,6 +1062,18 @@ public class ImService {
				}
			}
			
			if("1".equals(wlyyOutpatientDO.getOutpatientType()) && "2".equals(wlyyOutpatientDO.getType())){
				JSONObject object = new JSONObject();
				object.put("socket_sms_type",5);
				object.put("relation_code",wlyyOutpatientDO.getId());
				imUtil.sendMessage(wlyyOutpatientDO.getDoctor(),wlyyOutpatientDO.getPatient(),"1",content);
			}else if("2".equals(wlyyOutpatientDO.getOutpatientType())){
				JSONObject object = new JSONObject();
				object.put("socket_sms_type",6);
				object.put("relation_code",wlyyOutpatientDO.getId());
				imUtil.sendMessage(wlyyOutpatientDO.getDoctor(),wlyyOutpatientDO.getGeneralDoctor(),"1",content);
			}
			
			return result;
		}
	}