wxf 2 лет назад
Родитель
Сommit
b52e4689bd

+ 1 - 1
hx-account/src/main/java/com/fjhx/account/service/account/impl/AccountPaymentServiceImpl.java

@@ -145,7 +145,7 @@ public class AccountPaymentServiceImpl extends ServiceImpl<AccountPaymentMapper,
 
 
         //修改账户-余额表的中余额
         //修改账户-余额表的中余额
         accountRemainder.setRemainder( accountRemainder.getRemainder().subtract(accountPaymentDto.getAmount()));
         accountRemainder.setRemainder( accountRemainder.getRemainder().subtract(accountPaymentDto.getAmount()));
-        accountRemainderService.updateById(accountRemainder);
+        accountRemainderService.add(accountRemainder);
     }
     }
 
 
     @Override
     @Override