fix 优化代码风格和触发数据迁移任务下发
This commit is contained in:
@@ -169,16 +169,18 @@ public class GainfoPermissionService : IGainfoPermissionService
|
||||
var tasks = devices.Select(x => new DeviceTaskEntity
|
||||
{
|
||||
UserId = gainfo!.Id,
|
||||
Source = null,
|
||||
DeviceUniqueNo = x.UniqueNo,
|
||||
Status = DeviceTaskStatusEnumType.Wait,
|
||||
Version = 0,
|
||||
CancellationId = 0,
|
||||
UserNo = request.UserNo,
|
||||
Type = request.IsLeave
|
||||
? DeviceTaskEnumType.Delete
|
||||
: DeviceTaskEnumType.Add,
|
||||
DeviceType = x.Type,
|
||||
TenantId = gainfo.Factory,
|
||||
Priority = 10
|
||||
Priority = 10,
|
||||
|
||||
}).ToList();
|
||||
|
||||
await _dbContext.InsertAsync(tasks);
|
||||
@@ -193,6 +195,8 @@ public class GainfoPermissionService : IGainfoPermissionService
|
||||
.Select<DeviceGroupTreeResponse>()
|
||||
.ToListAsync();
|
||||
}
|
||||
|
||||
//**********************************************************************************************************************************************
|
||||
|
||||
private static IEnumerable<Guid> RecursionGetNext(DeviceGroupEntity current, List<DeviceGroupEntity> deviceGroups)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user