在院提示修改

master
wyb 2 years ago
parent a18732a81e
commit 7a843abf2b

@ -112,7 +112,7 @@ public class SdBusinessServiceImpl implements SdBusinessService {
if (ResultCode.FAILED.getCode().equals(task.getCode())) { if (ResultCode.FAILED.getCode().equals(task.getCode())) {
String data = task.getData(); String data = task.getData();
if (Func.isNotBlank(data) && data.contains("出院")) { if (Func.isNotBlank(data) && data.contains("出院")) {
throw new BaseException("患者未出院"); throw new BaseException("该患者为在院状态,请在患者出院后提交");
} }
throw new RuntimeException("补偿失败!"); throw new RuntimeException("补偿失败!");
} }
@ -126,7 +126,7 @@ public class SdBusinessServiceImpl implements SdBusinessService {
throw new BaseException("住院号+住院次数 ,系统中患者有多个!"); throw new BaseException("住院号+住院次数 ,系统中患者有多个!");
} }
if (!isDischarge(patientIds.get(0))) { if (!isDischarge(patientIds.get(0))) {
throw new BaseException("该患者未出院"); throw new BaseException("该患者为在院状态,请在患者出院后提交");
} }
} }

Loading…
Cancel
Save