From eeb25872848e2daebcbeab477a9dfe5b9c972a50 Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Mon, 30 Jan 2023 16:05:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Myshipping.Application/Service/DataSync/DataSyncService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Myshipping.Application/Service/DataSync/DataSyncService.cs b/Myshipping.Application/Service/DataSync/DataSyncService.cs index af63ddc1..589d232d 100644 --- a/Myshipping.Application/Service/DataSync/DataSyncService.cs +++ b/Myshipping.Application/Service/DataSync/DataSyncService.cs @@ -164,7 +164,7 @@ namespace Myshipping.Application } var user = _repUser.AsQueryable().Where(x => x.CreatedUserName.Trim() == model.CreatedUserName.Trim()).FirstAsync(); - if (user == null) + if (user.Result== null) { throw Oops.Bah("未匹配到创建人"); }