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);