From 87560e06027abf94f234e2f1c7117111ffd6c276 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Tue, 24 Dec 2024 17:16:14 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E7=BC=96?=
=?UTF-8?q?=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
IRaCIS.Core.Application/Service/Management/UserService.cs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/IRaCIS.Core.Application/Service/Management/UserService.cs b/IRaCIS.Core.Application/Service/Management/UserService.cs
index d4430bcb6..d48de3c29 100644
--- a/IRaCIS.Core.Application/Service/Management/UserService.cs
+++ b/IRaCIS.Core.Application/Service/Management/UserService.cs
@@ -531,8 +531,11 @@ namespace IRaCIS.Core.Application.Service
///
/// xiuga
- public async Task GetUser()
+ public async Task GetUser(Guid identityUserId)
{
+
+ identityUserId = identityUserId != Guid.Empty ? identityUserId : _userInfo.IdentityUserId;
+
var user = await _identityUserRepository.Where(t => t.Id == _userInfo.IdentityUserId).ProjectTo(_mapper.ConfigurationProvider).FirstOrDefaultAsync();
user.AccountList = await _userRepository.Where(t => t.IdentityUserId == _userInfo.IdentityUserId).ProjectTo(_mapper.ConfigurationProvider).ToListAsync();