Browse Source

修复租户初始化

zhontai 2 years ago
parent
commit
8f24dc102f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/platform/ZhonTai.Admin/Services/Tenant/TenantService.cs

+ 1 - 1
src/platform/ZhonTai.Admin/Services/Tenant/TenantService.cs

@@ -136,7 +136,7 @@ public class TenantService : BaseService, ITenantService, IDynamicApi
             TenantId = tenantId,
             MainOrgId = org.Id
         };
-        await _organizationRepository.InsertAsync(org);
+        await _employeeRepository.InsertAsync(emp);
 
         //添加用户部门
         var userOrg = new EmployeeOrganizationEntity