diff --git a/Src/Dlhis.Canteen/Setting/Controllers/WalletsController.cs b/Src/Dlhis.Canteen/Setting/Controllers/WalletsController.cs index 53a38aaa..36fd7142 100644 --- a/Src/Dlhis.Canteen/Setting/Controllers/WalletsController.cs +++ b/Src/Dlhis.Canteen/Setting/Controllers/WalletsController.cs @@ -1,6 +1,7 @@ using System.ComponentModel.DataAnnotations; using Dlhis.Canteen.Setting.Response; using Dlhis.Canteen.Setting.Services; +using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; @@ -37,6 +38,7 @@ public class WalletsController : ControllerBase /// 钱包code /// [HttpGet("balance")] + [IgnoreTenant] public async Task GetBalanceAsync([Required] string walletCode) { return await _walletService.GetBalanceAsync(walletCode); diff --git a/Src/Dlhis.Canteen/Setting/Services/Implements/WalletService.cs b/Src/Dlhis.Canteen/Setting/Services/Implements/WalletService.cs index 20ac1476..1ef8e9c5 100644 --- a/Src/Dlhis.Canteen/Setting/Services/Implements/WalletService.cs +++ b/Src/Dlhis.Canteen/Setting/Services/Implements/WalletService.cs @@ -28,7 +28,7 @@ public class WalletService : IWalletService .Select(x => new WalletResponse { Code = x.Code, - Name = x.Name, + Name = x.Name + "钱包", Factories = SqlFunc.Subqueryable().Where(p => p.Code == x.Code).ToList(p => p.Factory) }) .ToListAsync();