fix factories校验

This commit is contained in:
2025-02-17 18:45:12 +08:00
parent 660b3314d5
commit a7aa0cc800

View File

@@ -69,7 +69,8 @@ public class GainfoService : IGainfoService
//根据组织架构搜索档案
var where = LinqExpressionExtensions.False<GainfoEntity>();
var factories = _currentUser.GetUserClaim("tenants").Split(",").ToList();
request.DepartmentSelections = request.DepartmentSelections.Where(x => factories.Contains(x.Tenant)).ToList();
if (request.DepartmentSelections.Any())
{
foreach (var item in request.DepartmentSelections)