|
|
@@ -688,11 +688,11 @@ |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="findPaymentByDate" parameterType="com.iformall.domain.po.WxCoupon" resultType="com.iformall.domain.po.WxCoupon"> |
|
|
<select id="findPaymentByDate" parameterType="com.iformall.domain.po.WxCoupon" resultType="com.iformall.domain.po.WxCoupon"> |
|
|
select DATE_FORMAT(ci.create_date,'%Y-%m-%d') xtime,sum(round(wcs.deduction_amount/100,2)) xcount from wx_card_info ci |
|
|
|
|
|
|
|
|
select DATE_FORMAT(wcs.create_date,'%Y-%m-%d') xtime,sum(round(wcs.deduction_amount/100,2)) xcount from wx_card_info ci |
|
|
left join wx_coupon c on c.id = ci.coupon_id |
|
|
left join wx_coupon c on c.id = ci.coupon_id |
|
|
left join wx_card_spend wcs on wcs.card_id = ci.id |
|
|
left join wx_card_spend wcs on wcs.card_id = ci.id |
|
|
where c.type = 100 |
|
|
where c.type = 100 |
|
|
and ci.create_date between #{startdate} and #{enddate} |
|
|
|
|
|
|
|
|
and wcs.create_date between #{startdate} and #{enddate} |
|
|
group by xtime |
|
|
group by xtime |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
|