diff --git a/mallinkService/src/main/resources/mapper/WxCouponMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponMapper.xml index 7135ec650..234f3bbb5 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponMapper.xml @@ -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 @@ @@ -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