fix 数据类型过滤

This commit is contained in:
2025-12-24 14:52:46 +08:00
parent e6c4e523e4
commit 6c606c6791

View File

@@ -69,7 +69,7 @@ public class GainfoPermissionService : IGainfoPermissionService
? await _dbContext.Queryable<GainfoGroupEntity>().Select(x => new { x.Code, x.Name }).ToListAsync()
: new[] { new { Code = Guid.Empty, Name = string.Empty } }.ToList();
list.ForEach(item =>
list.Where(x => x.Type == request.DeviceType).ToList().ForEach(item =>
{
var permission = permissions.FirstOrDefault(x => x.Tenant == item.Factory);
if (permission != null)