From dfc3e6210d5e107903e82ca44b6ffd2b68b9a9b8 Mon Sep 17 00:00:00 2001 From: 18942506660 <18942506660@A18942506660> Date: Fri, 29 Mar 2024 13:33:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/WMS.Web.Repositories/SubscribeNotificationRepositories.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WMS.Web.Repositories/SubscribeNotificationRepositories.cs b/src/WMS.Web.Repositories/SubscribeNotificationRepositories.cs index 0667b906..2bb1f155 100644 --- a/src/WMS.Web.Repositories/SubscribeNotificationRepositories.cs +++ b/src/WMS.Web.Repositories/SubscribeNotificationRepositories.cs @@ -143,14 +143,14 @@ namespace WMS.Web.Repositories { if (ids == null) { - return await _context.SubscribeNotification + return await _context.SubscribeNotification.Where(w => w.IsDelete != true) .AsNoTracking().ToListAsync(); } else { return await _context.SubscribeNotification .AsNoTracking() - .Where(w => ids.Contains(w.Id)) + .Where(w => ids.Contains(w.Id) && w.IsDelete != true) .ToListAsync(); } }