diff --git a/IRaCIS.Core.Application/MassTransit/Consumer/ImageConsumer.cs b/IRaCIS.Core.Application/MassTransit/Consumer/ImageConsumer.cs index f3203c663..2c55411dd 100644 --- a/IRaCIS.Core.Application/MassTransit/Consumer/ImageConsumer.cs +++ b/IRaCIS.Core.Application/MassTransit/Consumer/ImageConsumer.cs @@ -322,6 +322,28 @@ public class ImageConsumer( return; } + + List dictionaryDtos = new List() { + new DictionaryDto (){DictionaryCode= "YesOrNo",EnumValue=inDto.SubjectVisit.IsUrgent.ToString(), }, //是否加急 + }; + if (inDto.Scenario == EmailBusinessScenario.DataReconciliation_PMApprovalRe_Uploading) + { + dictionaryDtos.Add(new DictionaryDto() { DictionaryCode = "RequestBackState", EnumValue = inDto.RequestBackStateEnum.GetEnumInt(), }); + } + else + { + dictionaryDtos.Add(new DictionaryDto() { DictionaryCode = "ImageBackState", EnumValue = inDto.ImageBackStateEnum.GetEnumInt(), });//审批结果 + } + + + var dictionValue = await CommonEmailHelper.TranslationDictionary(new TranslationDictionaryDto() + { + + DictionaryRepository = _dictionaryRepository, + IsEn_US = isEn_US, + DictionaryList = dictionaryDtos + }); + foreach (var userinfo in toUserList) { var messageToSend = new MimeMessage(); @@ -334,28 +356,6 @@ public class ImageConsumer( { messageToSend.Cc.Add(new MailboxAddress(String.Empty, ccUser.EMail)); } - - List dictionaryDtos = new List() { - new DictionaryDto (){DictionaryCode= "YesOrNo",EnumValue=inDto.SubjectVisit.IsUrgent.ToString(), }, //是否加急 - }; - if (inDto.Scenario == EmailBusinessScenario.DataReconciliation_PMApprovalRe_Uploading) - { - dictionaryDtos.Add(new DictionaryDto() { DictionaryCode = "RequestBackState", EnumValue = inDto.RequestBackStateEnum.GetEnumInt(), }); - } - else - { - dictionaryDtos.Add(new DictionaryDto() { DictionaryCode = "ImageBackState", EnumValue = inDto.ImageBackStateEnum.GetEnumInt(), });//审批结果 - } - - - var dictionValue = await CommonEmailHelper.TranslationDictionary(new TranslationDictionaryDto() - { - - DictionaryRepository = _dictionaryRepository, - IsEn_US = isEn_US, - DictionaryList = dictionaryDtos - }); - // 格式化邮件内容 Func<(string topicStr, string htmlBodyStr), (string topicStr, string htmlBodyStr)> emailConfigFunc = input => {