bugfix: 任务更新置空问题
parent
30cb706b81
commit
afa31d7032
|
|
@ -375,8 +375,10 @@ public class ConfigSubscribe : IJob
|
||||||
{
|
{
|
||||||
var errorMsg = ErrorMap[code];
|
var errorMsg = ErrorMap[code];
|
||||||
//Console.WriteLine($"任务失败: 错误码 {code} 错误信息 {errorMsg}");
|
//Console.WriteLine($"任务失败: 错误码 {code} 错误信息 {errorMsg}");
|
||||||
// todo 任务执行失败
|
// 任务执行失败
|
||||||
// TOdo 和航线进度方法中返回的错误有没有区别 ????
|
// TOdo 和航线进度方法中返回的错误有没有区别 ????
|
||||||
|
taskRecordExecute.Status = 2;
|
||||||
|
taskRecordExecute.Reason = $"{DateTime.Now:yyyy-MM-dd HH:mm:ss} {errorMsg}(错误码: {code})";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -385,7 +387,7 @@ public class ConfigSubscribe : IJob
|
||||||
Console.WriteLine($"任务执行响应 {code} {message}");
|
Console.WriteLine($"任务执行响应 {code} {message}");
|
||||||
}
|
}
|
||||||
|
|
||||||
await _sqlSugarClient.Updateable(taskRecordExecute).ExecuteCommandAsync();
|
await _sqlSugarClient.Updateable(taskRecordExecute).IgnoreNullColumns().ExecuteCommandAsync();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue