From 82946280666efe84a9263310ba42fbb37a81d9a4 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 7 Jun 2022 17:52:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E4=BB=B6=E5=8F=91=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/Common/MailService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/Common/MailService.cs b/IRaCIS.Core.Application/Service/Common/MailService.cs index 1cc0514cc..27aaf636d 100644 --- a/IRaCIS.Core.Application/Service/Common/MailService.cs +++ b/IRaCIS.Core.Application/Service/Common/MailService.cs @@ -499,6 +499,7 @@ namespace IRaCIS.Application.Services var doctor = await _doctorTypeRepository.FindAsync(doctorId); User sysUserInfo = null; + var userType = await _userTypeRepository.FirstAsync(t => t.UserTypeEnum == UserTypeEnum.IndependentReviewer); using (await _mutex.LockAsync()) { @@ -519,6 +520,7 @@ namespace IRaCIS.Application.Services saveItem.UserTypeEnum = UserTypeEnum.IndependentReviewer; saveItem.DoctorId = doctorId; + saveItem.UserTypeId = userType.Id; sysUserInfo = await _userRepository.AddAsync(saveItem); @@ -530,7 +532,6 @@ namespace IRaCIS.Application.Services } } - var userType= await _userTypeRepository.FirstAsync(t => t.UserTypeEnum== UserTypeEnum.IndependentReviewer); var trialInfo = await _trialRepository.FirstOrDefaultAsync(t => t.Id == trialId);