diff --git a/IRaCIS.Core.Application/Service/Document/SystemDocumentService.cs b/IRaCIS.Core.Application/Service/Document/SystemDocumentService.cs index a3e22f7b9..efea64699 100644 --- a/IRaCIS.Core.Application/Service/Document/SystemDocumentService.cs +++ b/IRaCIS.Core.Application/Service/Document/SystemDocumentService.cs @@ -168,7 +168,7 @@ namespace IRaCIS.Core.Application.Services .Where(id => !beforeUserTypeIds.Contains(id)) .ToList(); - if (newUserTypeIds.Any()) + if (newUserTypeIds.Any()&& newUserTypeIds.Count()>0) { // 发送邮件给新增的角色 Console.WriteLine("开始 发送系统文档更新邮件给新增角色");