From efda03a0c9f6aabd7c0a363f366e7e165cabeed5 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 9 Apr 2026 17:18:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=87=8D=E5=A4=84=E7=90=86=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/SiteSurvey/TrialSiteSurveyService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs index 25ee0428b..b6900a32f 100644 --- a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs +++ b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs @@ -1191,7 +1191,7 @@ namespace IRaCIS.Core.Application.Contracts var userEmail = item.Key; - var userTypeIdList = item.Select(t => t.UserTypeId).ToList(); + var userTypeIdList = item.Select(t => t.UserTypeId).Distinct().ToList(); var existSysUser = await _identityUserRepository.Where(t => t.EMail == userEmail, true).Include(t => t.UserRoleList).FirstOrDefaultAsync(); @@ -1322,7 +1322,7 @@ namespace IRaCIS.Core.Application.Contracts - foreach (var userTypeId in userTypeIdList.Distinct()) + foreach (var userTypeId in userTypeIdList) { var findTrialUserRole = findTrialUser.TrialUserRoleList.Where(t => t.UserRole?.UserTypeId == userTypeId).FirstOrDefault();