fix 排除outsource

This commit is contained in:
2025-02-26 09:21:03 +08:00
parent aa3dd1d893
commit 040f03262e

View File

@@ -15,7 +15,7 @@ public class TenantPermissionAnalyzeService : BasePermissionAnalyzeService
protected override async Task<List<string>> GetGainfoNosAsync(string assignValue)
{
return await DbContext.Queryable<GainfoEntity>()
.Where(x => x.Factory == assignValue && x.Type != GainfoUserTypeEnumType.External)
.Where(x => x.Factory == assignValue && x.Type != GainfoUserTypeEnumType.External && x.Type != GainfoUserTypeEnumType.Outsource)
.Select(x => x.No).ToListAsync();
}
}