diff --git a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingQuestionViewModel.cs b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingQuestionViewModel.cs index 7993fd3cd..99ef6e9f4 100644 --- a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingQuestionViewModel.cs +++ b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingQuestionViewModel.cs @@ -465,23 +465,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto public string ExportResultStr { get; set; } = "[]"; [NotMapped] - public List ExportResult - { - get - { - try - { - var result = JsonConvert.DeserializeObject>(this.ExportResultStr); - return result == null ? new List() : result; - } - catch (Exception) - { - - return new List(); - } - - } - } + public List ExportResult { get; set; } } /// ReadingTableQuestionSystemAddOrEdit 列表查询参数模型 @@ -596,24 +580,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto [Comment("导出结果")] public string ExportResultStr { get; set; } = "[]"; - [NotMapped] - public List ExportResult - { - get - { - try - { - var result = JsonConvert.DeserializeObject>(this.ExportResultStr); - return result == null ? new List() : result; - } - catch (Exception) - { - - return new List(); - } - - } - } + public List ExportResult { get; set; } public List ParentTriggerValueList { get; set; } = new List(); diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingCriterion/ReadingQuestionService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingCriterion/ReadingQuestionService.cs index 0a2af5d23..5a44f2041 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingCriterion/ReadingQuestionService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingCriterion/ReadingQuestionService.cs @@ -408,7 +408,6 @@ namespace IRaCIS.Core.Application.Service { indto.ParentTriggerValue = string.Join(',', indto.ParentTriggerValueList); indto.RelevanceValue = string.Join(',', indto.RelevanceValueList); - indto.ExportResultStr = JsonConvert.SerializeObject(indto.ExportResult); var entity = await _readingTableQuestionSystemRepository.InsertOrUpdateAsync(indto, true);