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

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

@ -392,7 +392,7 @@ namespace OpenAuth.App.ServiceApp
/// <param name="key"></param>
/// <returns></returns>
public async Task<Response<PageInfo<List<LasaTask>>>> GetTaskPageList(int page, int limit, string key,
int? status,string airLineId)
int? status, string airLineId)
{
RefAsync<int> totalCount = 0;
using (var db = UnitWork.CreateContext())
@ -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,