Переглянути джерело

门诊统筹补录收款方式调整成现金

hurugang 2 роки тому
батько
коміт
a6f3504943

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

@@ -4470,6 +4470,9 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
                 mf.setOpId(opId);
                 mf.setDcountDate(null);
                 mf.setDcountNo(YesNoEnum.NO.code);
+                if(!(Constants.BYJZ.equals(mf.getChequeType()) || Constants.YBJZ.equals(mf.getChequeType()))){
+                    mf.setChequeType(Constants.CASH);
+                }
                 newList.add(mf);
             }
         }
@@ -4491,7 +4494,7 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService {
         selfAmount=selfAmount.setScale(2, BigDecimal.ROUND_HALF_UP);
         if(selfAmount.compareTo(BigDecimal.ZERO)==1) {
             MzDepositFile  selfDepositFile = CloneUtil.clone(tempMzDepositFile);
-            selfDepositFile.setChequeType(tempMzDepositFile.getChequeType());
+            selfDepositFile.setChequeType(Constants.CASH);
             selfDepositFile.setAmount(selfAmount);
             newList.add(selfDepositFile);
         }