|
@@ -50,7 +50,7 @@ public class DismissService {
|
|
|
if (!actOrders.getData().isEmpty()) {
|
|
if (!actOrders.getData().isEmpty()) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.ABNORMAL_YZ_ACT_ORDER, actOrders.getData());
|
|
return ResultVoUtil.fail(ExceptionEnum.ABNORMAL_YZ_ACT_ORDER, actOrders.getData());
|
|
|
}
|
|
}
|
|
|
- ResultVo<List<NegativeFee>> calculate = calculateForDismiss(param);
|
|
|
|
|
|
|
+ ResultVo<List<IllegalFee>> calculate = calculateForDismiss(param);
|
|
|
if (calculate.getCode() == ExceptionEnum.EXIST_NEGATIVE_FEES.getCode()) {
|
|
if (calculate.getCode() == ExceptionEnum.EXIST_NEGATIVE_FEES.getCode()) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.EXIST_NEGATIVE_FEES, calculate.getData());
|
|
return ResultVoUtil.fail(ExceptionEnum.EXIST_NEGATIVE_FEES, calculate.getData());
|
|
|
}
|
|
}
|
|
@@ -103,7 +103,7 @@ public class DismissService {
|
|
|
return ResultVoUtil.success(list);
|
|
return ResultVoUtil.success(list);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public ResultVo<List<NegativeFee>> calculateForDismiss(Patient param) {
|
|
|
|
|
|
|
+ public ResultVo<List<IllegalFee>> calculateForDismiss(Patient param) {
|
|
|
final String patNo = param.getInpatientNo();
|
|
final String patNo = param.getInpatientNo();
|
|
|
final Integer times = param.getAdmissTimes();
|
|
final Integer times = param.getAdmissTimes();
|
|
|
if (!param.getMidSetl()) {
|
|
if (!param.getMidSetl()) {
|
|
@@ -207,17 +207,16 @@ public class DismissService {
|
|
|
exception.setMessage("此患者有未提交的药单。");
|
|
exception.setMessage("此患者有未提交的药单。");
|
|
|
throw new BizException(exception);
|
|
throw new BizException(exception);
|
|
|
}
|
|
}
|
|
|
- if (dao.hasUntreatedDrugWithdrawalOrder(patNo, times) > 0) {
|
|
|
|
|
- ExceptionEnum exception = ExceptionEnum.LOGICAL_ERROR;
|
|
|
|
|
- exception.setMessage("此患者有未处理的药单,请联系药房处理。");
|
|
|
|
|
- throw new BizException(exception);
|
|
|
|
|
|
|
+ List<IllegalFee> unhandledList = dao.hasUntreatedDrugOrder(patNo, times);
|
|
|
|
|
+ if (unhandledList.size() > 0) {
|
|
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.EXIST_UNHANDLED_DRUG_ORDER, unhandledList);
|
|
|
}
|
|
}
|
|
|
if (dao.hasUnconfirmedMedicalTech(patNo, times, tmpendtime) > 0) {
|
|
if (dao.hasUnconfirmedMedicalTech(patNo, times, tmpendtime) > 0) {
|
|
|
ExceptionEnum exception = ExceptionEnum.LOGICAL_ERROR;
|
|
ExceptionEnum exception = ExceptionEnum.LOGICAL_ERROR;
|
|
|
exception.setMessage("此患者有未确认的医技。");
|
|
exception.setMessage("此患者有未确认的医技。");
|
|
|
throw new BizException(exception);
|
|
throw new BizException(exception);
|
|
|
}
|
|
}
|
|
|
- List<NegativeFee> feeNegativeList = dao.feeOrderNegative(patNo, times);
|
|
|
|
|
|
|
+ List<IllegalFee> feeNegativeList = dao.feeOrderNegative(patNo, times);
|
|
|
if (feeNegativeList.size() > 0) {
|
|
if (feeNegativeList.size() > 0) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.EXIST_NEGATIVE_FEES, feeNegativeList);
|
|
return ResultVoUtil.fail(ExceptionEnum.EXIST_NEGATIVE_FEES, feeNegativeList);
|
|
|
}
|
|
}
|