From 576fca6d1124cd3187f452b652bb4d92e3564f1f Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Tue, 29 Nov 2022 09:21:02 +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/ReadingMedicalReviewDto.cs | 4 ++-- IRaCIS.Core.Domain/Allocation/TaskMedicalReview.cs | 3 ++- .../Reading/MedicalAudit/ReadingMedicalReviewDialog.cs | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingMedicalReviewDto.cs b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingMedicalReviewDto.cs index 2c540e80..1cfb82d1 100644 --- a/IRaCIS.Core.Application/Service/Reading/Dto/ReadingMedicalReviewDto.cs +++ b/IRaCIS.Core.Application/Service/Reading/Dto/ReadingMedicalReviewDto.cs @@ -252,7 +252,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto public string CreateUserName { get; set; } - public List FileList { get; set; } + public List FileList { get; set; } = new List(); } @@ -468,7 +468,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto public string Questioning { get; set; } = string.Empty; - public List FileList { get; set; } + public List FileList { get; set; } = new List(); /// /// 审核建议 diff --git a/IRaCIS.Core.Domain/Allocation/TaskMedicalReview.cs b/IRaCIS.Core.Domain/Allocation/TaskMedicalReview.cs index 7006cd79..6aae1867 100644 --- a/IRaCIS.Core.Domain/Allocation/TaskMedicalReview.cs +++ b/IRaCIS.Core.Domain/Allocation/TaskMedicalReview.cs @@ -184,7 +184,8 @@ namespace IRaCIS.Core.Domain.Models try { - return JsonConvert.DeserializeObject>(this.ImagePath); + var result= JsonConvert.DeserializeObject>(this.ImagePath); + return result==null?new List() : result; } catch (Exception) { diff --git a/IRaCIS.Core.Domain/Reading/MedicalAudit/ReadingMedicalReviewDialog.cs b/IRaCIS.Core.Domain/Reading/MedicalAudit/ReadingMedicalReviewDialog.cs index 8d2618ec..68585153 100644 --- a/IRaCIS.Core.Domain/Reading/MedicalAudit/ReadingMedicalReviewDialog.cs +++ b/IRaCIS.Core.Domain/Reading/MedicalAudit/ReadingMedicalReviewDialog.cs @@ -114,7 +114,8 @@ namespace IRaCIS.Core.Domain.Models try { - return JsonConvert.DeserializeObject>(this.ImagePath); + var result = JsonConvert.DeserializeObject>(this.ImagePath); + return result == null ? new List() : result; } catch (Exception) {