From 8c8eb5eb7eb840f5ad2e581f701d6db7dba0d938 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Wed, 27 Nov 2024 18:28:39 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E8=A1=A5=E6=B6=88=E8=B4=B9?= =?UTF-8?q?=E6=97=B6=E9=87=8D=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.Canteen/Order/Services/Implements/BalanceService.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Src/Dlhis.Canteen/Order/Services/Implements/BalanceService.cs b/Src/Dlhis.Canteen/Order/Services/Implements/BalanceService.cs index b65df1a1..5a45ff2a 100644 --- a/Src/Dlhis.Canteen/Order/Services/Implements/BalanceService.cs +++ b/Src/Dlhis.Canteen/Order/Services/Implements/BalanceService.cs @@ -318,6 +318,8 @@ public class BalanceService : IBalanceService await _dbContext.InsertAsync(newBalanceRecord); } + await _balanceRepository.CalculateBalanceAsync(balanceInfo.UserCode); + await _dbContext.Client.Ado.CommitTranAsync(); } catch (Exception)