浏览代码

统筹补录优化

lihong 1 年之前
父节点
当前提交
8816a6472d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzChargeDetailServiceImpl.java

+ 2 - 2
src/main/java/cn/hnthyy/thmz/service/impl/his/mz/MzChargeDetailServiceImpl.java

@@ -5681,7 +5681,7 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
         List<MzDepositFile> mzDepositFiles = mzDepositFileMapper.selectMzDepositFileByTimes(patientId, times, receiptNo, "mz_deposit_file");
         //本院记账重收的时候。新的收费方式与老的部分收费方式的receiptNo 不一致,所以加这个逻辑
         BigDecimal tempAmount = mzDepositFileMapper.selectSumAmount(patientId, times, receiptNo);
-        if (totalAmount.compareTo(tempAmount) > 0) {
+        if (totalAmount.compareTo(Convert.toBigDecimal(tempAmount,BigDecimal.ZERO)) > 0) {
             mzDepositFiles = mzDepositFileMapper.selectMzDepositFileByTimesWithOutByjz(patientId, times);
         }
         MzDepositFile tempMzDepositFile = null;
@@ -5768,7 +5768,7 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
         List<MzReceiptSerial> mzReceiptSerials = mzReceiptSerialMapper.selectReceiptDetails(patientId, times, receiptNo, "mz_receipt_serial");
         //本院记账重收的时候。新的收费方式与老的部分收费方式的receiptNo 不一致,所以加这个逻辑
         BigDecimal tempAmount = mzDepositFileMapper.selectSumAmount(patientId, times, receiptNo);
-        if (totalAmount.compareTo(tempAmount) > 0) {
+        if (totalAmount.compareTo(Convert.toBigDecimal(tempAmount,BigDecimal.ZERO)) > 0) {
             mzReceiptSerials = mzReceiptSerialMapper.selectReceiptDetailsWithOutByjz(patientId, times);
         }
         MzReceiptSerial tempMzReceiptSerial = null;