中心调研邮件初步修改
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-12-25 16:02:49 +08:00
parent 7535d49844
commit 25116a9f0e
4 changed files with 25 additions and 21 deletions
@@ -205,6 +205,8 @@ namespace IRaCIS.Application.Contracts
public string FullName { get; set; } = String.Empty;
public string UserTypeShortName { get; set; }
public bool IsSelect { get; set; }
}
@@ -13,6 +13,8 @@ using IRaCIS.Core.Domain.Share;
using IRaCIS.Core.Infrastructure;
using Medallion.Threading;
using Microsoft.AspNetCore.Mvc;
using DocumentFormat.OpenXml.Spreadsheet;
using IRaCIS.Core.Domain.Models;
namespace IRaCIS.Core.Application.Service
{
@@ -276,15 +278,16 @@ namespace IRaCIS.Core.Application.Service
}
}
//判断TrialUser中是否存在 不存在就插入 注意退出了,也不能再加进来
}
await _mailVerificationService.ExternalUserJoinEmail(trialId, userId,userTypeId, sendEmail.BaseUrl, sendEmail.RouteUrl);
foreach (var item in sendEmail.SendUsers.GroupBy(t=>t.SystemUserId))
{
await _mailVerificationService.ExternalUserJoinEmail(trialId, item.Key, sendEmail.BaseUrl, sendEmail.RouteUrl);
}
return ResponseOutput.Ok();
return ResponseOutput.Ok();
}
@@ -150,7 +150,7 @@ namespace IRaCIS.Core.Application.Service
OrganizationName = t.IdentityUser.OrganizationName,
Phone = t.IdentityUser.Phone,
UserName = t.IdentityUser.UserName,
UserTypeShortName=t.UserTypeRole.UserTypeShortName,
IsSelect = t.UserRoleTrials.Any(t => t.TrialId == inQuery.TrialId),
});