|
|
|
@@ -697,13 +697,16 @@ |
|
|
|
(select count(wo.id) from wx_coupon wc |
|
|
|
left join wx_order wo on wo.product_id = wc.id |
|
|
|
where wo.order_status = 1 and wc.type = 8 |
|
|
|
and wo.create_date between #{startdate} and #{enddate}) |
|
|
|
and wo.create_date between #{startdate} and #{enddate} |
|
|
|
and wo.tenant_id = #{tenantId} |
|
|
|
) |
|
|
|
/ |
|
|
|
(select count(wop.id) from wx_coupon wc |
|
|
|
left join wx_order wo on wo.product_id = wc.id |
|
|
|
left join wx_order_press wop on wop.order_id = wo.id |
|
|
|
where wop.first = 1 and wc.type = 8 |
|
|
|
and wop.create_date between #{startdate} and #{enddate}) |
|
|
|
and wop.create_date between #{startdate} and #{enddate} |
|
|
|
and wo.tenant_id = #{tenantId} and wop.tenant_id = #{tenantId}) |
|
|
|
* 100 |
|
|
|
,2) |
|
|
|
</select> |
|
|
|
|