From 91f093867a961af58281749a86e5722a62349140 Mon Sep 17 00:00:00 2001 From: yanghongwei Date: Tue, 29 Apr 2025 15:46:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BD=E5=90=8D=E5=8D=95=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/WhitListService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Service/WhitListService.cs b/Service/WhitListService.cs index 6737797..b225bbd 100644 --- a/Service/WhitListService.cs +++ b/Service/WhitListService.cs @@ -34,7 +34,7 @@ namespace LY.App.Service { var result = new ApiResult(); var entity = input.Adapt(); - var exisit = await _db.Queryable().AnyAsync(x => x.sn == entity.sn); + var exisit = await _db.Queryable().AnyAsync(x => x.sn == entity.sn && x.IsDeleted == false); if (exisit) { result.code = 1; @@ -117,7 +117,7 @@ namespace LY.App.Service public async Task Update(UpdateWhitelist input) { var entity = input.Adapt(); - + if (entity != null) { await _db.Updateable(entity).ExecuteCommandAsync();