From 1c2030a42534c7f2698e3e07a896ada61e62c02b Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Fri, 24 Mar 2023 11:24:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Reading/Dto/ReadingImageTaskViewModel.cs | 1 + .../Reading/ReadingImageTask/ReadingImageTaskService.cs | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs index cab45c5cd..d863fd555 100644 --- a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs +++ b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingImageTaskViewModel.cs @@ -387,6 +387,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto { public string Answer { get; set; } + public bool IsFirstChangeTask { get; set; } = false; public List CrterionDictionaryGroup { get; set; } public List Childrens = new List(); diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs index 44b1008da..0cd00e6ee 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs @@ -643,6 +643,14 @@ namespace IRaCIS.Application.Services { x.CrterionDictionaryGroup = taskinfo.CrterionDictionaryGroup; }); + + if (taskinfo.IsConvertedTask && taskinfo.BeforeConvertedTaskId != null) + { + questions.ForEach(x => + { + x.IsFirstChangeTask =true; + }); + } } else {