|
@@ -184,10 +184,14 @@ public class TriageService {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.NO_DATA_EXIST, "没有找到此患者的分诊信息!");
|
|
|
}
|
|
|
prm.setAction(param.getAction());
|
|
|
- dao.updateStatus(param.getSerialNo());
|
|
|
log.info("消息推送>>> {}", prm);
|
|
|
RestTemplate template = new RestTemplate();
|
|
|
String result = template.postForObject(triageNotifyUrl, prm, String.class);
|
|
|
+ if (param.getAction() == 1) {
|
|
|
+ if (null != result && result.equals("0")) {
|
|
|
+ dao.updateStatus(param.getSerialNo());
|
|
|
+ }
|
|
|
+ }
|
|
|
return ResultVoUtil.success(result);
|
|
|
}
|
|
|
}
|