修改发送邮件模型

Uat_Study
hang 2022-03-30 14:52:12 +08:00
parent fdb32f8a94
commit 1c41cca8c4
2 changed files with 2 additions and 2 deletions

View File

@ -216,7 +216,7 @@ namespace IRaCIS.Core.Application.Contracts
public string RouteUrl { get; set; } = string.Empty;
public List<TrialSiteUserSurvey> UserList { get; set; } = new List<TrialSiteUserSurvey>();
public List<TrialSiteUserSurveyView> UserList { get; set; } = new List<TrialSiteUserSurveyView>();
}

View File

@ -753,7 +753,7 @@ namespace IRaCIS.Core.Application.Contracts
//已生成的不管 管的只需要是 生成失败的并且需要生成账号的
var needGenerateList = _trialSiteUserSurveyRepository.Where(t => t.TrialSiteSurveyId == trialSiteSurveyId && t.IsGenerateAccount && t.IsGenerateSuccess == false).ToList();
var needGenerateList = _trialSiteUserSurveyRepository.Where(t => t.TrialSiteSurveyId == trialSiteSurveyId && t.IsGenerateAccount && t.IsGenerateSuccess == false).ProjectTo<TrialSiteUserSurveyView>(_mapper.ConfigurationProvider).ToList();
await SendInviteEmail(new InviteEmailCommand() { TrialId = trialId, RouteUrl = siteSurvyeSubmit.RouteUrl, UserList = needGenerateList });