Quellcode durchsuchen

修复租户初始化

zhontai vor 2 Jahren
Ursprung
Commit
8f24dc102f
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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