fix 权限数据过滤

This commit is contained in:
2025-01-09 12:18:08 +08:00
parent 96d8f494d9
commit da40fc3a0f
2 changed files with 2 additions and 3 deletions

View File

@@ -287,7 +287,7 @@ public class DevicePermissionAnalyzeService : IDevicePermissionAnalyzeService
AssignType = p.Key.AssignType,
AssignValue = p.Key.AssignValue,
UniqueType = p.Key.UniqueType,
Codes = p.SelectMany(xx => xx.Codes).ToList(),
Codes = p.SelectMany(xx => xx.Codes.Where(xxx => analyzePack.DeviceCodes.Contains(xxx))).ToList(),
OriginalCodes = p.Where(xx => xx.OriginalCodes.IsPresent()).SelectMany(xx => xx.OriginalCodes).ToList()
}).ToList()
};