From 5527f51880e66cebdd762dfdbdcafab6e5e1d02d Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Mon, 18 Aug 2025 14:23:25 +0800
Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E8=AF=81=E9=80=9A=E8=BF=87=EF=BC=8C?=
=?UTF-8?q?=E8=BF=94=E5=9B=9E=E8=B4=A6=E6=88=B7=E4=BF=A1=E6=81=AFId?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
IRaCIS.Core.Application/Service/Management/UserService.cs | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/IRaCIS.Core.Application/Service/Management/UserService.cs b/IRaCIS.Core.Application/Service/Management/UserService.cs
index 0c1e9ffbf..c446a2bf0 100644
--- a/IRaCIS.Core.Application/Service/Management/UserService.cs
+++ b/IRaCIS.Core.Application/Service/Management/UserService.cs
@@ -12,6 +12,7 @@ using IRaCIS.Core.Infrastructure;
using MassTransit;
using Medallion.Threading;
using Microsoft.AspNetCore.Authorization;
+using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using Org.BouncyCastle.Utilities.Encoders;
@@ -960,7 +961,7 @@ namespace IRaCIS.Core.Application.Service
///
[AllowAnonymous]
[HttpGet("{email}/{verifyCode}")]
- public async Task> VerifyAnonymousVerifyCode(string email, string verifyCode)
+ public async Task> VerifyAnonymousVerifyCode(string email, string verifyCode)
{
var hospitalInfo = await _fusionCache.GetOrSetAsync(CacheKeys.Hospital, async _ => await CacheHelper.GetHospitalCode(_hirHospitalRepository), TimeSpan.FromDays(7));
@@ -1004,10 +1005,7 @@ namespace IRaCIS.Core.Application.Service
}
-
- var list = await _userRoleRepository.Where(t => t.EMail == email).Select(t => new UserAccountDto() { UserId = t.Id, UserName = t.UserName, UserRealName = t.FullName, UserType = t.UserTypeRole.UserTypeShortName }).ToListAsync();
-
-
+ var list = await _userRoleRepository.Where(t => t.EMail == email).ProjectTo(_mapper.ConfigurationProvider).OrderBy(t => t.UserTypeShortName).ToListAsync();
return list;
}