邮件发送

Uat_Study
hang 2022-06-07 17:52:29 +08:00
parent d8b968e46a
commit 8294628066
1 changed files with 2 additions and 1 deletions

View File

@ -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);