|
@@ -31,6 +31,8 @@ public class TriageService {
|
|
|
private final TriageDao dao;
|
|
|
@Value("${triage-notify-url}")
|
|
|
private String triageNotifyUrl;
|
|
|
+ @Value("${execute-scheduled}")
|
|
|
+ private Boolean executeScheduled;
|
|
|
|
|
|
public TriageService(TriageDao dao) {
|
|
|
this.dao = dao;
|
|
@@ -203,6 +205,9 @@ public class TriageService {
|
|
|
}
|
|
|
|
|
|
public ResultVo<String> notifyMessage(MessageForPush param) {
|
|
|
+ if (!executeScheduled) {
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.NETWORK_ERROR);
|
|
|
+ }
|
|
|
MessageForPush messageForPush = dao.selectMessageForPush(param.getSerialNo());
|
|
|
if (null == messageForPush) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.NO_DATA_EXIST, "没有找到此患者的分诊信息!");
|