fix .
This commit is contained in:
@@ -38,7 +38,7 @@ public class CreateGetUploadRecordJob : BaseJob
|
||||
)
|
||||
{
|
||||
var id = deviceTask.Id;
|
||||
await DbContext.Deleteable<DeviceEntity>().Where(x => x.Id == id).ExecuteCommandAsync();
|
||||
await DbContext.Deleteable<DeviceTaskEntity>().Where(x => x.Id == id).ExecuteCommandAsync();
|
||||
deviceTask = null;
|
||||
}
|
||||
else if (deviceTask.Status == DeviceTaskStatusEnumType.Wait)
|
||||
@@ -47,7 +47,7 @@ public class CreateGetUploadRecordJob : BaseJob
|
||||
{
|
||||
// 如果任务等待时间超过3天,则删除任务
|
||||
var id = deviceTask.Id;
|
||||
await DbContext.Deleteable<DeviceEntity>().Where(x => x.Id == id).ExecuteCommandAsync();
|
||||
await DbContext.Deleteable<DeviceTaskEntity>().Where(x => x.Id == id).ExecuteCommandAsync();
|
||||
deviceTask = null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ public class CreateSyncServerDateTimeJob : BaseJob
|
||||
)
|
||||
{
|
||||
var id = deviceTask.Id;
|
||||
await DbContext.Deleteable<DeviceEntity>().Where(x => x.Id == id).ExecuteCommandAsync();
|
||||
await DbContext.Deleteable<DeviceTaskEntity>().Where(x => x.Id == id).ExecuteCommandAsync();
|
||||
deviceTask = null;
|
||||
}
|
||||
else if (deviceTask.Status == DeviceTaskStatusEnumType.Wait)
|
||||
@@ -46,7 +46,7 @@ public class CreateSyncServerDateTimeJob : BaseJob
|
||||
{
|
||||
// 如果任务等待时间超过3天,则删除任务
|
||||
var id = deviceTask.Id;
|
||||
await DbContext.Deleteable<DeviceEntity>().Where(x => x.Id == id).ExecuteCommandAsync();
|
||||
await DbContext.Deleteable<DeviceTaskEntity>().Where(x => x.Id == id).ExecuteCommandAsync();
|
||||
deviceTask = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user