Commit 27d74142 authored by liudong1993's avatar liudong1993

1 业绩提成排除 西班牙语

parent 1070b457
......@@ -1244,7 +1244,8 @@ ORDER BY {orderBy}
left join rb_class c on o.ClassId = c.ClassId
left join rb_studyabroad s on o.SourceId = s.Id
left join rb_sell_achievements_emp e on o.OrderId = e.OrderId
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'
left join rb_course co on c.CouseId = co.CourseId
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 co.CateId <>8
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