| | |
| | | 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; |
| | |
| | | |
| | | 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 |
| | | |
| | |
| | | |
| | | return res.Id; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | #endregion |
| | | |
| | | #endregion |
| | | |
| | | |
| | | } |
| | | |
| | | } |