Commit fd68c329 authored by liudong1993's avatar liudong1993

1订单应发提成调整

parent 19bf884c
......@@ -203,7 +203,7 @@ namespace Edu.WebApi.Controllers.Course
OrderSourceName = x.OrderSource.ToName(),
x.EnterID,
EnterName = UserReidsCache.GetUserLoginInfo(x.EnterID)?.AccountName ?? "",
YFCommissionMoney = x.CommissionType == 1 ? x.CommissionRate : Math.Round(x.PreferPrice * x.CommissionRate / 100, 2, MidpointRounding.AwayFromZero),
YFCommissionMoney = x.CommissionType == 1 ? x.CommissionRate : Math.Round((x.PreferPrice - x.DiscountMoney) * x.CommissionRate / 100, 2, MidpointRounding.AwayFromZero),
x.CommissionMoney,
x.ExtraCommissionMoney,
x.ExtraRewardMoney,
......@@ -289,7 +289,7 @@ namespace Edu.WebApi.Controllers.Course
OrderStateName = x.OrderState.ToName(),
x.EnterID,
EnterName = UserReidsCache.GetUserLoginInfo(x.EnterID)?.AccountName ?? "",
YFCommissionMoney = x.CommissionType == 1 ? x.CommissionRate : Math.Round(x.PreferPrice * x.CommissionRate / 100, 2, MidpointRounding.AwayFromZero),
YFCommissionMoney = x.CommissionType == 1 ? x.CommissionRate : Math.Round((x.PreferPrice - x.DiscountMoney) * x.CommissionRate / 100, 2, MidpointRounding.AwayFromZero),
x.CommissionMoney,
x.ExtraCommissionMoney,
x.ExtraRewardMoney,
......@@ -1165,7 +1165,7 @@ namespace Edu.WebApi.Controllers.Course
OrderSourceName = x.OrderSource.ToName(),
x.EnterID,
EnterName = UserReidsCache.GetUserLoginInfo(x.EnterID)?.AccountName ?? "",
YFCommissionMoney = x.CommissionType == 1 ? x.CommissionRate : Math.Round(x.PreferPrice * x.CommissionRate / 100, 2, MidpointRounding.AwayFromZero),
YFCommissionMoney = x.CommissionType == 1 ? x.CommissionRate : Math.Round((x.PreferPrice - x.DiscountMoney) * x.CommissionRate / 100, 2, MidpointRounding.AwayFromZero),
x.CommissionMoney,
x.ExtraCommissionMoney,
x.ExtraRewardMoney,
......@@ -1315,7 +1315,7 @@ namespace Edu.WebApi.Controllers.Course
OrderSourceName = x.OrderSource.ToName(),
x.EnterID,
EnterName = UserReidsCache.GetUserLoginInfo(x.EnterID)?.AccountName ?? "",
YFCommissionMoney = x.CommissionType == 1 ? x.CommissionRate : Math.Round(x.PreferPrice * x.CommissionRate / 100, 2, MidpointRounding.AwayFromZero),
YFCommissionMoney = x.CommissionType == 1 ? x.CommissionRate : Math.Round((x.PreferPrice - x.DiscountMoney) * x.CommissionRate / 100, 2, MidpointRounding.AwayFromZero),
x.CommissionMoney,
x.ExtraCommissionMoney,
x.ExtraRewardMoney,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment