y %!s(int64=2) %!d(string=hai) anos
pai
achega
cb8cc30c8c

+ 4 - 3
src/main/java/com/ydtech/modules/inv/utils/TransferUtils.java

@@ -368,10 +368,11 @@ public class TransferUtils {
                         throw new SystemException("账户余额不足");
                     }
                 }
+                if (!enterAccountCard.getBalance().isEmpty()) {
+                    enterAccountCard.setBalance(new BigDecimal(enterAccountCard.getBalance()).subtract(invAccountExcelApplyAmount).toString());
+                }
             }
-            if (enterAccountCard != null && !enterAccountCard.getBalance().isEmpty()) {
-                enterAccountCard.setBalance(new BigDecimal(enterAccountCard.getBalance()).subtract(invAccountExcelApplyAmount).toString());
-            }
+
         }
 
         return enterAccountCard;