From 284b31862870f51128cfcb4d94c5a749a10502b8 Mon Sep 17 00:00:00 2001 From: luozukai Date: Fri, 22 Mar 2019 16:51:17 +0800 Subject: [PATCH] =?UTF-8?q?[=E8=90=A5=E9=94=80=E5=88=86=E6=9E=90][?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0][=E5=8D=A1=E8=90=A5=E9=94=80=E5=88=97?= =?UTF-8?q?=E8=A1=A8]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mallinkService/src/main/resources/mapper/WxCouponMapper.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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