From 824561bf4fa6b6c81714d6b4419f37cf6aafebb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=87=AA=E5=B8=A6=E5=A4=A7=E4=BD=AC=E6=B0=94=E5=9C=BA?= <188633308@qq.com> Date: Mon, 26 Apr 2021 17:50:37 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=88=B6=E8=8A=82=E7=82=B9=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Api/Ewide.Core/Service/Org/SysOrgService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Api/Ewide.Core/Service/Org/SysOrgService.cs b/Api/Ewide.Core/Service/Org/SysOrgService.cs index 3f02002..a6b6269 100644 --- a/Api/Ewide.Core/Service/Org/SysOrgService.cs +++ b/Api/Ewide.Core/Service/Org/SysOrgService.cs @@ -210,7 +210,7 @@ namespace Ewide.Core.Service [UnitOfWork] public async Task UpdateOrg(UpdateOrgInput input) { - if (input.Pid != "0" && !string.IsNullOrEmpty(input.Pid)) + if (!input.Pid.Equals(System.Guid.Empty.ToString()) && !string.IsNullOrEmpty(input.Pid)) { var org = await _sysOrgRep.DetachedEntities.FirstOrDefaultAsync(u => u.Id == input.Pid); _ = org ?? throw Oops.Oh(ErrorCode.D2000);