|
@@ -190,26 +190,26 @@ public class DismissService {
|
|
|
exception.setMessage("费用计算失败。执行zy_cngl_fyjs过程出错。");
|
|
|
throw new BizException(exception);
|
|
|
}
|
|
|
- String[] receipts = getReceiptFees(receiptFees);
|
|
|
- String adultFee = dao.selectAdultFee(patNo, times, ledgerSn);
|
|
|
- if (null == adultFee) {
|
|
|
- adultFee = "0";
|
|
|
- }
|
|
|
- log.info("总费用:{},发票计算费用:{}", adultFee, receipts[0]);
|
|
|
- if (DecimalUtil.compare(receipts[0], adultFee) != 0) {
|
|
|
- ExceptionEnum exception = ExceptionEnum.LOGICAL_ERROR;
|
|
|
- exception.setMessage("此患者明细费用与发票费用不一致。");
|
|
|
- throw new BizException(exception);
|
|
|
- }
|
|
|
- String infantFee = dao.selectInfantFee(patNo, times, ledgerSn);
|
|
|
- if (null == infantFee) {
|
|
|
- infantFee = "0";
|
|
|
- }
|
|
|
- if (DecimalUtil.compare(receipts[1], infantFee) != 0) {
|
|
|
- ExceptionEnum exception = ExceptionEnum.LOGICAL_ERROR;
|
|
|
- exception.setMessage("此患者婴儿明细费用与发票婴儿费用不一致。");
|
|
|
- throw new BizException(exception);
|
|
|
- }
|
|
|
+// String[] receipts = getReceiptFees(receiptFees);
|
|
|
+// String adultFee = dao.selectAdultFee(patNo, times, ledgerSn);
|
|
|
+// if (null == adultFee) {
|
|
|
+// adultFee = "0";
|
|
|
+// }
|
|
|
+// log.info("总费用:{},发票计算费用:{}", adultFee, receipts[0]);
|
|
|
+// if (DecimalUtil.compare(receipts[0], adultFee) != 0) {
|
|
|
+// ExceptionEnum exception = ExceptionEnum.LOGICAL_ERROR;
|
|
|
+// exception.setMessage("此患者明细费用与发票费用不一致。");
|
|
|
+// throw new BizException(exception);
|
|
|
+// }
|
|
|
+// String infantFee = dao.selectInfantFee(patNo, times, ledgerSn);
|
|
|
+// if (null == infantFee) {
|
|
|
+// infantFee = "0";
|
|
|
+// }
|
|
|
+// if (DecimalUtil.compare(receipts[1], infantFee) != 0) {
|
|
|
+// ExceptionEnum exception = ExceptionEnum.LOGICAL_ERROR;
|
|
|
+// exception.setMessage("此患者婴儿明细费用与发票婴儿费用不一致。");
|
|
|
+// throw new BizException(exception);
|
|
|
+// }
|
|
|
dao.deleteTemporaryTable(patNo, times);
|
|
|
return ResultVoUtil.success();
|
|
|
}
|