Browse Source

orgId belong center

xf 1 year ago
parent
commit
90603dfc54
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Hotline/Settings/SystemDomainService.cs

+ 1 - 1
src/Hotline/Settings/SystemDomainService.cs

@@ -137,7 +137,7 @@ public class SystemDomainService : ISystemDomainService, IScopeDependency
                 if (!int.TryParse(maxCode.GetLastOrgCode(), out var max))
                     throw new UserFriendlyException("无效部门编码");
 
-                org.Id = (max + 1).ToString("000");
+                org.Id = $"{OrgSeedData.CenterId}{(max + 1):000}";
             }
             org.IsCenter = false;
             org.Level = 1;