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