优化:针对不存在的手飞任务调用结束智能巡检优化

feature-flyModify
陈伟 2025-09-10 15:56:59 +08:00
parent e08a671ef7
commit a198fd5588
1 changed files with 12 additions and 1 deletions

View File

@ -2720,6 +2720,17 @@ namespace OpenAuth.App.ServiceApp
public async Task<Response<bool>> EndAiInspection(string taskid)
{
var taskTemp = await Repository.ChangeRepository<SugarRepositiry<LasaTask>>()
.GetByIdAsync(taskid);
if (taskTemp == null)
{
return new Response<bool>()
{
Result = true,
Message = "任务不存在"
};
}
var task = new LasaTask()
{
Id = taskid,