修改发送邮件模型
parent
fdb32f8a94
commit
1c41cca8c4
|
@ -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>();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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 });
|
||||
|
|
Loading…
Reference in New Issue