diff --git a/Src/Dlhis.Basic/Device/Services/Implements/DevicePermissionService.cs b/Src/Dlhis.Basic/Device/Services/Implements/DevicePermissionService.cs index 71f523ab..511bcaab 100644 --- a/Src/Dlhis.Basic/Device/Services/Implements/DevicePermissionService.cs +++ b/Src/Dlhis.Basic/Device/Services/Implements/DevicePermissionService.cs @@ -139,11 +139,6 @@ public class DevicePermissionService : IDevicePermissionService .Where(x => x.UniqueType == request.UniqueType) .Select(x => x.UniqueValue) .ToListAsync(); - - // var deviceGroups = await _dbContext.Queryable().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 func, List userNos) { var tenantId = _currentUser.GetStringTenantId(); - // if (_currentUser.GetStringSubjectId() != "14") - // { - // throw new Exception("系统维护中,暂不可操作"); - // } + if (_currentUser.GetStringSubjectId() != "14") + { + throw new Exception("系统维护中,暂不可操作"); + } //获取所有人的权限 if (userNos.IsEmpty())