|
|
|
@@ -790,7 +790,7 @@ |
|
|
|
|
|
|
|
(select count(wo.id) from wx_coupon wc |
|
|
|
left join wx_order wo on wo.product_id = wc.id |
|
|
|
where wo.order_status = 7 and wc.id = c.id) as press_succ_count, |
|
|
|
where wo.order_status = 1 and wc.id = c.id) as press_succ_count, |
|
|
|
|
|
|
|
(select count(wop.id) from wx_coupon wc |
|
|
|
left join wx_order wo on wo.product_id = wc.id |
|
|
|
@@ -902,7 +902,7 @@ |
|
|
|
<select id="pressSuccHistory" parameterType="com.iformall.domain.po.WxCoupon" resultType="com.iformall.domain.po.WxCoupon"> |
|
|
|
select DATE_FORMAT(wo.create_date,'%Y-%m-%d') xtime,count(wo.id) xcount from wx_coupon wc |
|
|
|
left join wx_order wo on wo.product_id = wc.id |
|
|
|
where wc.type = 8 and wo.order_status = 7 |
|
|
|
where wc.type = 8 and wo.order_status = 1 |
|
|
|
and wo.create_date between #{startdate} and #{enddate} |
|
|
|
group by xtime |
|
|
|
</select> |
|
|
|
@@ -918,7 +918,7 @@ |
|
|
|
round( |
|
|
|
(select count(wo.id) from wx_coupon wc |
|
|
|
left join wx_order wo on wo.product_id = wc.id |
|
|
|
where wo.order_status = 7 and wc.type = 8 |
|
|
|
where wo.order_status = 1 and wc.type = 8 |
|
|
|
and wo.create_date between #{startdate} and #{enddate}) |
|
|
|
/ |
|
|
|
(select count(wop.id) from wx_coupon wc |
|
|
|
|