From 8e72b0afc987ab311db9d7f0b7afcf203f96ecea Mon Sep 17 00:00:00 2001 From: liguoyang Date: Tue, 9 Apr 2024 17:44:51 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=AE=BE=E7=BD=AEenable=E8=BF=87?= =?UTF-8?q?=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Setting/Services/Implements/CanteenSettingService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Src/Dlhis.Canteen/Setting/Services/Implements/CanteenSettingService.cs b/Src/Dlhis.Canteen/Setting/Services/Implements/CanteenSettingService.cs index 68f28f10..3e06e324 100644 --- a/Src/Dlhis.Canteen/Setting/Services/Implements/CanteenSettingService.cs +++ b/Src/Dlhis.Canteen/Setting/Services/Implements/CanteenSettingService.cs @@ -85,7 +85,9 @@ public class CanteenSettingService : ICanteenSettingService public async Task> GetUserSettingAsync(string userNo) { var settings = await _context.Queryable() - .Where(x => (x.UniqueType == CanteenSettingUnqiueEnumType.Person && x.UniqueValue == userNo) || x.UniqueType == CanteenSettingUnqiueEnumType.Tenant) + .Where(x => x.Enable) + .Where(x => (x.UniqueType == CanteenSettingUnqiueEnumType.Person && x.UniqueValue == userNo) + || x.UniqueType == CanteenSettingUnqiueEnumType.Tenant) .ToListAsync(); //从基地 -> 个人,确保下面循环做到覆盖,并且以个人配置为主