From 430d7bcde17c88713e4c33f3fe82bfb87221b18f Mon Sep 17 00:00:00 2001 From: luozukai Date: Fri, 22 Mar 2019 15:56:52 +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 --- .../main/resources/mapper/WxCouponMapper.xml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mallinkService/src/main/resources/mapper/WxCouponMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponMapper.xml index accb8093f..5ce83afd3 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponMapper.xml @@ -746,8 +746,8 @@ where wc.id = c.id) as sum_subsidy from wx_coupon c where c.type = 100 - - and c.id = #{id} + + and c.title = concat('%', #{title},'%') order by c.status asc,c.create_date desc @@ -769,8 +769,8 @@ and c.sale_price = 0 - - and c.id = #{id} + + and c.title = concat('%', #{title},'%') order by c.status asc,c.create_date desc @@ -804,8 +804,8 @@ *100,2) as payment_rate from wx_coupon c where c.type = 8 - - and c.id = #{id} + + and c.title = concat('%', #{title},'%') order by c.status asc,c.create_date desc @@ -840,7 +840,7 @@ select DATE_FORMAT(wco.create_date,'%Y-%m-%d') xtime,count(wco.id) xcount from wx_coupon c,wx_coupon_order wco where c.type not in(8,9,100) and wco.coupon_id = c.id and wco.coupon_order_status = 1 - and wco.create_date between #{startdate} and #{enddate} + and wco.update_date between #{startdate} and #{enddate} group by xtime @@ -856,7 +856,7 @@ select DATE_FORMAT(wco.create_date,'%Y-%m-%d') xtime,count(wco.id) xcount from wx_coupon c,wx_coupon_order wco where c.type not in(8,9,100) and wco.coupon_id = c.id and wco.coupon_order_status = 1 and wco.coupon_price > 0 - and wco.create_date between #{startdate} and #{enddate} + and wco.update_date between #{startdate} and #{enddate} group by xtime @@ -869,7 +869,7 @@