This commit is contained in:
2024-07-05 16:55:43 +08:00
parent 48609a2c28
commit 038c8260e8

View File

@@ -139,11 +139,6 @@ public class DevicePermissionService : IDevicePermissionService
.Where(x => x.UniqueType == request.UniqueType)
.Select(x => x.UniqueValue)
.ToListAsync();
// var deviceGroups = await _dbContext.Queryable<DeviceGroupEntity>().ToListAsync();
//
// var result = GetAssignCodesInternal(devicePermissions, deviceGroups, request.UniqueType, request.AssignType, request.AssignValue);
// return result.FirstOrDefault(x => x.Tenant == _currentUser.GetStringTenantId())?.Codes;
}
@@ -169,10 +164,10 @@ public class DevicePermissionService : IDevicePermissionService
public async Task GenerateDeviceTasksAsync(Func<Task> func, List<string> userNos)
{
var tenantId = _currentUser.GetStringTenantId();
// if (_currentUser.GetStringSubjectId() != "14")
// {
// throw new Exception("系统维护中,暂不可操作");
// }
if (_currentUser.GetStringSubjectId() != "14")
{
throw new Exception("系统维护中,暂不可操作");
}
//获取所有人的权限
if (userNos.IsEmpty())