fix 开放权限配置

This commit is contained in:
2024-06-24 15:49:40 +08:00
parent a783803e2f
commit 6d773cb0e1

View File

@@ -1,5 +1,4 @@
using System.Collections.Concurrent;
using Dlhis.Basic.Device.Dtos;
using Dlhis.Basic.Device.Dtos;
using Dlhis.Basic.Device.Request;
using Dlhis.Basic.Organization.Dto;
using Dlhis.Entity.Basic.Entity;
@@ -185,10 +184,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())
@@ -274,7 +273,7 @@ public class DevicePermissionService : IDevicePermissionService
_logger.LogInformation("{tenant}任务产生数量{count}", tenantId, waitTasks.Count);
if (waitTasks.Any())
{
// await _dbContext.InsertAsync(waitTasks);
await _dbContext.InsertAsync(waitTasks);
}
}