From 1447caa6b184ee1e80970740e30fa970c3d08a78 Mon Sep 17 00:00:00 2001 From: zhengyuxuan <zhengyuxuan1995> Date: 星期一, 31 三月 2025 13:54:38 +0800 Subject: [PATCH] Merge branch 'dev-lifepay-v1.3' of http://120.26.58.240:8888/r/LifePaymentApi into dev-lifepay-v1.3 --- LifePayment/LifePayment.Application/User/AccountService.cs | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/LifePayment/LifePayment.Application/User/AccountService.cs b/LifePayment/LifePayment.Application/User/AccountService.cs index 951403b..58f2164 100644 --- a/LifePayment/LifePayment.Application/User/AccountService.cs +++ b/LifePayment/LifePayment.Application/User/AccountService.cs @@ -9,6 +9,7 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Linq.Dynamic.Core; using System.Threading.Tasks; using Volo.Abp; using Volo.Abp.Application.Services; @@ -92,6 +93,27 @@ return result; } + + public async Task<BackClientUserInfoOutput> GetBackClientUserInfo() + { + var channlesNums = await _userChannleRep.Where(x => x.UserId == CurrentUser.Id).Select(s => s.ChannleId).Distinct().ToListAsync(); + + var channleList = await _lifePayChannlesRepository.Where(x => channlesNums.Contains(x.ChannlesNum)).Select(s => new ChannelOutput() + { + Name = s.ChannlesName, + ChannlesId = s.Id, + ChannlesNum = s.ChannlesNum + }).ToListAsync(); + + BackClientUserInfoOutput result = new BackClientUserInfoOutput() + { + IsBackClientUser = CurrentUser.ClientId == Constant.ClientType.Back, + IsSystem = CurrentUser.IsSystem, + ChannleList = channleList + }; + return result; + } + #endregion @@ -322,10 +344,15 @@ return res.Id; } + + + + #endregion #endregion } + } \ No newline at end of file -- Gitblit v1.9.1