From 7984dbfe6fe0711e80498f8f74ec5e925812b75c Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Wed, 29 Jun 2022 17:29:33 +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/Allocation/TaskMedicalReviewService.cs | 4 ++-- IRaCIS.Core.Domain/Allocation/TaskMedicalReview.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewService.cs b/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewService.cs index f11869ef2..ff84add3f 100644 --- a/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewService.cs +++ b/IRaCIS.Core.Application/Service/Allocation/TaskMedicalReviewService.cs @@ -75,7 +75,7 @@ namespace IRaCIS.Core.Application.Service // return ResponseOutput.NotOk("没有MIM"); //} - var defalutMIMUserId = mimUserList.FirstOrDefault().UserId; + var defalutMIMUserId = mimUserList.FirstOrDefault()?.UserId; //获取当前医生数据 已经生成的,和配置的数量 var taskTaskMedicalReviewRuleList = await _taskMedicalReviewRuleRepository.Where(t => t.TrialId == trialId).ProjectTo(_mapper.ConfigurationProvider).ToListAsync(); @@ -172,7 +172,7 @@ namespace IRaCIS.Core.Application.Service } - + await _taskMedicalReviewRepository.SaveChangesAsync(); return ResponseOutput.Ok(); } diff --git a/IRaCIS.Core.Domain/Allocation/TaskMedicalReview.cs b/IRaCIS.Core.Domain/Allocation/TaskMedicalReview.cs index 8e9088350..89b52a26b 100644 --- a/IRaCIS.Core.Domain/Allocation/TaskMedicalReview.cs +++ b/IRaCIS.Core.Domain/Allocation/TaskMedicalReview.cs @@ -56,7 +56,7 @@ namespace IRaCIS.Core.Domain.Models /// AuditSuggestion /// [Required] - public string AuditSuggestion { get; set; } + public string AuditSuggestion { get; set; }=String.Empty; /// /// AuditSignTime