|
@@ -20,6 +20,7 @@ import thyyxxk.webserver.utils.TokenUtil;
|
|
|
import thyyxxk.webserver.utils.VoiceUtil;
|
|
|
import thyyxxk.webserver.websocket.WebSocketServer;
|
|
|
|
|
|
+import java.nio.channels.NotYetBoundException;
|
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
@@ -219,6 +220,9 @@ public class TriageService {
|
|
|
VoiceUtil.textToSpeech(text, String.valueOf(param.getSerialNo()));
|
|
|
final String msg = JSON.toJSONString(messageForPush);
|
|
|
TriageNotifyRelation notifyRelation = dao.selectTriageNotifyRelation(messageForPush.getSerialNo());
|
|
|
+ if (null == notifyRelation) {
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.NULL_POINTER, "没有找到对应的分诊关系。");
|
|
|
+ }
|
|
|
WebSocketServer.sendFloorTriageMessage(notifyRelation.getSocketSid(), msg);
|
|
|
WebSocketServer.sendRoomTriageMessage(notifyRelation.getRoomCode(), msg);
|
|
|
dao.updateNotifyDatetime(param.getSerialNo());
|