|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public async Task<List<CreateEditPayChannelsInput>> GetLifePayChannlesAllList() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return await GetLifePayChannlesListFilter().Where(x => x.Status == LifePayChannelsStatsEnum.启用).ToListAsync(); | 
|---|
|  |  |  | return await GetLifePayChannlesListFilter().ToListAsync(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public async Task<CreateEditPayChannelsInput> GetLifePayChannlesDto(Guid id) | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (order.LifePayOrderStatus == LifePayOrderStatusEnum.已完成) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | ///结算渠道佣金 | 
|---|
|  |  |  | /// 毛利 | 
|---|
|  |  |  | var grossProfit = order.RechargeAmount * (order.ChannleRate - order.PlatformRate) / 100; | 
|---|
|  |  |  | /// 渠道佣金  ((充值面额 * 渠道折扣比例)-(充值面额 * 平台折扣比例))* 佣金比例 | 
|---|
|  |  |  | 
|---|
|  |  |  | LifePayChannlesRake lifePayChannlesRake = new LifePayChannlesRake() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | OrderNo = order.OrderNo, | 
|---|
|  |  |  | PayAmount = order.PayAmount.Value, | 
|---|
|  |  |  | ChannlesRakeRate = order.ChannlesRakeRate.Value, | 
|---|
|  |  |  | ChannlesRakePrice = channlesRakePrice.Value, | 
|---|
|  |  |  | PayAmount = order.RechargeAmount ?? 0, | 
|---|
|  |  |  | ChannlesRakeRate = order.ChannlesRakeRate ?? 0, | 
|---|
|  |  |  | ChannlesRakePrice = channlesRakePrice ?? 0, | 
|---|
|  |  |  | FinishTime = order.FinishTime.Value, | 
|---|
|  |  |  | ChannelId = order.ChannelId, | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | 
|---|
|  |  |  | var channlesRakePrice = grossProfit * (channlesRakeRate) / 100; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /// 利润 | 
|---|
|  |  |  | var profit = grossProfit - channlesRakePrice - (premiumRate); | 
|---|
|  |  |  | var profit = grossProfit - channlesRakePrice - premiumPrice; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return new OrderPriceReturn() | 
|---|
|  |  |  | { | 
|---|