fix 时间变更,在线订单转离线情况

This commit is contained in:
2024-04-19 16:10:18 +08:00
parent 8df7f8f419
commit a2c121eadc
2 changed files with 22 additions and 2 deletions

View File

@@ -59,7 +59,6 @@ public class DeviceTaskAssignmentService : IDeviceTaskAssignmentService
})
.ToPageListAsync(request);
try
{
var tenantResult = await _tenantApi.GetTenantsInternalAsync();
@@ -94,6 +93,7 @@ public class DeviceTaskAssignmentService : IDeviceTaskAssignmentService
//更新任务状态
await _dbContext.Updateable<DeviceTaskEntity>()
.SetColumns(x => x.Status == DeviceTaskStatusEnumType.Wait)
.SetColumns(x => x.ModifiedTime == DateTime.Now)
.Where(x => request.Ids.Contains(x.Id))
.ExecuteCommandAsync();
}