Commit 44046a8a authored by liudong1993's avatar liudong1993

1 增加订单实收判断

parent 351dfa3e
......@@ -1162,7 +1162,7 @@ ORDER BY {orderBy}
string sql = $@"SELECT o.*,c.School_Id as ClassSchoolId FROM rb_order o
left join rb_class c on o.ClassId = c.ClassId
left join rb_sell_achievements_emp e on o.OrderId = e.OrderId
WHERE o.Group_Id ={group_Id} and o.OrderState =1 and o.CreateTime >='{sDate}' and o.CreateTime <= '{eDate} 23:59:59'
WHERE o.Group_Id ={group_Id} and o.OrderState =1 and o.Income >0 and o.CreateTime >='{sDate}' and o.CreateTime <= '{eDate} 23:59:59'
and e.Id is null
and o.PreferPrice = (o.Income - o.Refund + o.DiscountMoney + o.PlatformTax) {where}
group by o.OrderId
......
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