|
@@ -660,11 +660,13 @@ public class YiZhuLuRuServer {
|
|
|
}
|
|
|
|
|
|
if (dao.getADoctorSOrderWithADefiniteFee(yz.getInpatientNo(), yz.getAdmissTimes(), orderNo) > 0) {
|
|
|
- return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "该医嘱已经产生了医技费用,请对应的医技科室进行退费处理。");
|
|
|
+ return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "该医嘱已经执行,请对应的医技科室拒绝医嘱。");
|
|
|
}
|
|
|
+
|
|
|
if (dao.getDetailChargeFee(yz.getInstruction(), yz.getAdmissTimes(), orderNo) > 0) {
|
|
|
return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, "该医嘱已经产生了医技费用,请对应的医技科室进行退费处理。");
|
|
|
}
|
|
|
+
|
|
|
// 患者最大的 detail_sn
|
|
|
int maxDetailSn = publicServer.getMaxDetailSn(yz.getInpatientNo(), yz.getAdmissTimes());
|
|
|
dao.cancelMedicalTechnologyAssuranceFee(TokenUtil.getTokenUserId(), orderNo, yz.getInpatientNo(), yz.getAdmissTimes());
|
|
@@ -695,6 +697,7 @@ public class YiZhuLuRuServer {
|
|
|
}
|
|
|
dao.updateVoidedOrders(orderNo, userInfo.getCode(), reasonForCancellation);
|
|
|
dao.updateChildOrders(orderNo, userInfo.getCode(), reasonForCancellation);
|
|
|
+ log.info("作废医嘱==》操作人:{},医嘱号:{}", userInfo.getCode(), orderNo);
|
|
|
return ResultVoUtil.success(ExceptionEnum.SUCCESS_AND_NOTIFICATION, "撤销成功。");
|
|
|
}
|
|
|
|