|
@@ -236,24 +236,8 @@ public class TriageService {
|
|
|
messageBody.setSid(notifyRelation.getSocketSid());
|
|
|
messageBody.setRoomCode(notifyRelation.getRoomCode());
|
|
|
socketService.sendFloorTriageMessage(messageBody);
|
|
|
- socketService.sendRoomTriageMessage(messageBody);
|
|
|
dao.updateNotifyDatetime(param.getSerialNo());
|
|
|
- // todo 下面这一部分在完成迁移后删除,目前诊室门口小屏还是连的老分诊系统
|
|
|
- RestTemplate template = new RestTemplate();
|
|
|
- String result;
|
|
|
- try {
|
|
|
- result = template.postForObject(triageNotifyUrl, messageForPush, String.class);
|
|
|
- } catch (Exception e) {
|
|
|
- return ResultVoUtil.fail(ExceptionEnum.NETWORK_ERROR);
|
|
|
- }
|
|
|
- if (param.getAction() == 1) {
|
|
|
- if (null != result && result.equals("0")) {
|
|
|
- dao.updateStatus(param.getSerialNo());
|
|
|
- } else {
|
|
|
- log.error("消息推送失败,没有找到在线的分诊台连接。{}", messageForPush);
|
|
|
- }
|
|
|
- }
|
|
|
- return ResultVoUtil.success(result);
|
|
|
+ return socketService.sendRoomTriageMessage(messageBody);
|
|
|
}
|
|
|
|
|
|
private ResultVo<String> notifyVipReq(int serialNo) {
|