fix 设备权限处理

This commit is contained in:
2024-04-03 21:59:47 +08:00
parent 3e2a8cc2dd
commit 174a44cf2f
2 changed files with 41 additions and 24 deletions

View File

@@ -182,11 +182,6 @@ public class DevicePermissionService : IDevicePermissionService
var userNos = beforeDto.UserNos;
var before = beforeDto.PermissionInfos.ToDictionary(x => x.Key, x => x.Value, StringComparer.OrdinalIgnoreCase);
//获取业务处理后所有人的权限
var nextUserNos = await GetPermissionUserNosAsync();
if (nextUserNos.Any())
userNos = userNos.Concat(nextUserNos).Distinct(StringComparer.OrdinalIgnoreCase).ToList();
var current = await GetAssignDeviceCodesInternalAsync(userNos);
var deivces = await _dbContext.Queryable<DeviceEntity>().ToListAsync();