任务创建添加算法实例关联(补)

main
陈伟 2 weeks ago
parent 7d8e0c5fb8
commit 966eee0b65

@ -421,6 +421,8 @@ namespace OpenAuth.App.ServiceApp
task.PlanExecuteDuration = airLine.ScheduleTime; task.PlanExecuteDuration = airLine.ScheduleTime;
task.ExpectedFileCount = airLine.PictureTotal; task.ExpectedFileCount = airLine.PictureTotal;
var flag = await db.LasaTask.InsertAsync(task); var flag = await db.LasaTask.InsertAsync(task);
if (!string.IsNullOrEmpty(task.AIInspection))
{
var aiInspection = new LasaAiInspection var aiInspection = new LasaAiInspection
{ {
Id = Guid.NewGuid().ToString(), Id = Guid.NewGuid().ToString(),
@ -430,6 +432,7 @@ namespace OpenAuth.App.ServiceApp
WarningContent = task.WarningContent WarningContent = task.WarningContent
}; };
await db.LasaAiInspection.InsertAsync(aiInspection); await db.LasaAiInspection.InsertAsync(aiInspection);
}
// //{"0":"立即任务","1":"定时任务", // //{"0":"立即任务","1":"定时任务",
var type = task.TaskType; var type = task.TaskType;
if (type.Equals(1) || type.Equals(2)) // 定时任务 if (type.Equals(1) || type.Equals(2)) // 定时任务

Loading…
Cancel
Save