zhontai преди 2 години
родител
ревизия
8f24dc102f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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