xf 1 жил өмнө
parent
commit
90603dfc54

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

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