修改邮件发送多次bug

Test.EIImageViewer
hang 2023-02-28 18:17:27 +08:00
parent f750f2d4c9
commit ec93a4f4dc
2 changed files with 6 additions and 2 deletions

View File

@ -604,7 +604,7 @@
</member>
<member name="M:IRaCIS.Core.Application.Service.TrialEmailNoticeConfigService.BaseBusinessScenarioSendEmailAsync(System.Guid,System.Nullable{System.Boolean},IRaCIS.Core.Domain.Share.Common.EmailStoreSendMode,System.String)">
<summary>
测试邮件 带附件 填充word --前端不需要用
测试邮件 带附件 填充word --前端不需
</summary>
<param name="visitTaskId"></param>
<param name="isMedicalReviewAndSuggestApplyReReading"></param>

View File

@ -180,7 +180,7 @@ namespace IRaCIS.Core.Application.Service
var isNeedSend = true;
if (pdAnswer == "是")
if (pdAnswer == "是" && isMedicalReviewAndSuggestApplyReReading==null)
{
isNeedSend = true;
@ -458,6 +458,8 @@ namespace IRaCIS.Core.Application.Service
var isNeedSend = true;
var minUserIdList = _trialUserRepository.Where(t => t.User.UserTypeEnum == Domain.Share.UserTypeEnum.MIM && t.TrialId == taskInfo.TrialId).Select(t => t.UserId).ToList();
//入组确认 根据每个标准配置的是否自动发送,发送邮件与否
if (businessScenarioEnum == CommonDocumentBusinessScenario.EnrollConfirmed)
{
@ -757,6 +759,8 @@ namespace IRaCIS.Core.Application.Service
await SendEmailHelper.SendEmailAsync(sendEmailConfig);
return string.Empty;
}
var value = new Dictionary<string, object>()