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 @@