From 51b0d4a7bb23fec9fe69c73827c35a31e178b0c4 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Thu, 14 Nov 2024 14:14:47 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BD=99=E9=A2=9D=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E8=B7=A8=E5=8E=82=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.Canteen/Setting/Controllers/WalletsController.cs | 2 ++ Src/Dlhis.Canteen/Setting/Services/Implements/WalletService.cs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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();