Commit d3c9ed88 authored by liudong1993's avatar liudong1993

订单 平台税金加上

parent b701529a
...@@ -177,7 +177,7 @@ where {where} order by {orderBy} ...@@ -177,7 +177,7 @@ where {where} order by {orderBy}
} }
if (demodel.Q_NotCollect == 1) if (demodel.Q_NotCollect == 1)
{ {
where += $@" and o.{nameof(RB_Order_ViewModel.PreferPrice)} > (o.{nameof(RB_Order_ViewModel.Income)} - o.{nameof(RB_Order_ViewModel.Refund)} + o.{nameof(RB_Order_ViewModel.DiscountMoney)}) "; where += $@" and o.{nameof(RB_Order_ViewModel.PreferPrice)} > (o.{nameof(RB_Order_ViewModel.Income)} - o.{nameof(RB_Order_ViewModel.Refund)} + o.{nameof(RB_Order_ViewModel.PlatformTax)} + o.{nameof(RB_Order_ViewModel.DiscountMoney)}) ";
} }
string orderBy = " o.OrderId asc"; string orderBy = " o.OrderId asc";
...@@ -268,7 +268,7 @@ where {where} order by {orderBy} ...@@ -268,7 +268,7 @@ where {where} order by {orderBy}
} }
if (demodel.Q_NotCollect == 1) if (demodel.Q_NotCollect == 1)
{ {
where += $@" and o.{nameof(RB_Order_ViewModel.PreferPrice)} > (o.{nameof(RB_Order_ViewModel.Income)} - o.{nameof(RB_Order_ViewModel.Refund)} + o.{nameof(RB_Order_ViewModel.DiscountMoney)}) "; where += $@" and o.{nameof(RB_Order_ViewModel.PreferPrice)} > (o.{nameof(RB_Order_ViewModel.Income)} - o.{nameof(RB_Order_ViewModel.Refund)} + o.{nameof(RB_Order_ViewModel.PlatformTax)} + o.{nameof(RB_Order_ViewModel.DiscountMoney)}) ";
} }
string sql = $@" select SUM(CASE WHEN o.OrderState <> 3 THEN o.PreferPrice ELSE 0 END) AS PreferPrice, string sql = $@" select SUM(CASE WHEN o.OrderState <> 3 THEN o.PreferPrice ELSE 0 END) AS PreferPrice,
......
...@@ -118,7 +118,8 @@ namespace Edu.WebApi.Controllers.Course ...@@ -118,7 +118,8 @@ namespace Edu.WebApi.Controllers.Course
x.Income, x.Income,
x.Refund, x.Refund,
x.DiscountMoney, x.DiscountMoney,
DueInMoney = x.PreferPrice - (x.Income - x.Refund + x.DiscountMoney), x.PlatformTax,
DueInMoney = x.PreferPrice - (x.Income - x.Refund + x.PlatformTax + x.DiscountMoney),
x.OrderState, x.OrderState,
OrderStateName = x.OrderState.ToName(), OrderStateName = x.OrderState.ToName(),
x.EnterID, x.EnterID,
...@@ -748,7 +749,8 @@ namespace Edu.WebApi.Controllers.Course ...@@ -748,7 +749,8 @@ namespace Edu.WebApi.Controllers.Course
x.Income, x.Income,
x.Refund, x.Refund,
x.DiscountMoney, x.DiscountMoney,
DueInMoney = x.PreferPrice - (x.Income - x.Refund + x.DiscountMoney), x.PlatformTax,
DueInMoney = x.PreferPrice - (x.Income - x.Refund + x.PlatformTax + x.DiscountMoney),
x.OrderState, x.OrderState,
OrderStateName = x.OrderState.ToName(), OrderStateName = x.OrderState.ToName(),
x.EnterID, x.EnterID,
......
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