记得上下班打卡 | git大法好,push需谨慎

Commit c4119cef authored by 胡佳晨's avatar 胡佳晨

修改 sql 增加 优惠券数量 增加类型为优惠券

parent ae8f43aa
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
<div class="cell">退票数量</div> <div class="cell">退票数量</div>
</th> </th>
<th> <th>
<div class="cell">优惠券数量</div> <div class="cell">羊毛券数量</div>
</th> </th>
<th> <th>
<div class="cell">销售额(元)</div> <div class="cell">销售额(元)</div>
......
...@@ -533,7 +533,7 @@ ...@@ -533,7 +533,7 @@
kylin_order_ticket_relations kotr kylin_order_ticket_relations kotr
inner join kylin_order_tickets AS kot on kotr.order_id = kot.order_tickets_id inner join kylin_order_tickets AS kot on kotr.order_id = kot.order_tickets_id
inner JOIN kylin_order_ticket_status AS kots ON kots.order_id = kot.order_tickets_id inner JOIN kylin_order_ticket_status AS kots ON kots.order_id = kot.order_tickets_id
LEFT JOIN kylin_order_coupons AS koc on kots.order_id = koc.order_id LEFT JOIN kylin_order_coupons AS koc on kots.order_id = koc.order_id and coupon_type = 1
WHERE 1>0 and kotr.performance_id = ${performancesId} WHERE 1>0 and kotr.performance_id = ${performancesId}
and kots.`status` in(1,3,6) and kot.coupon_type ='no' and kots.transfer_status in (0,1,2,5) and kots.`status` in(1,3,6) and kot.coupon_type ='no' and kots.transfer_status in (0,1,2,5)
group by kotr.performance_id,kotr.ticket_id group by kotr.performance_id,kotr.ticket_id
......
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