fix 外包,访客只允许下发门禁

This commit is contained in:
2025-03-25 16:21:01 +08:00
parent a13fce6072
commit e141863d2d

View File

@@ -129,7 +129,7 @@ public class DevicePermissionAnalyzeService : IDevicePermissionAnalyzeService
UserDepartment = gainfo.DepartmentNo,
UserFactory = gainfo.Factory,
UserGainfoGroupCodes = gainfoGroupRelationships.Where(x => x.UserNo == gainfo.No).Select(x => x.GroupCode),
DeviceCodes = devices.WhereIf(excludes.Contains(gainfo.Type), x => x.Type != DeviceTypeEnumType.Meal).Select(x => x.Code), //不允许餐饮
DeviceCodes = devices.WhereIf(excludes.Contains(gainfo.Type), x => x.Type == DeviceTypeEnumType.Door).Select(x => x.Code), //只允许门禁
IgnoreAssignValue = ignoreAssignValue,
IgnoreAssignTypes = internalIgnoreAssignTypes,
IgnoreUniqueType = ignoreUniqueType