Przeglądaj źródła

[营销分析][添加][卡营销列表]

release_toaliyun_real
luozukai 7 lat temu
rodzic
commit
9798b80e2e
1 zmienionych plików z 4 dodań i 3 usunięć
  1. +4
    -3
      mallinkService/src/main/resources/mapper/WxCouponMapper.xml

+ 4
- 3
mallinkService/src/main/resources/mapper/WxCouponMapper.xml Wyświetl plik

@@ -866,16 +866,17 @@
</select> </select>


<select id="findSumPricePayMent" parameterType="com.iformall.domain.po.WxCoupon" resultType="Long"> <select id="findSumPricePayMent" parameterType="com.iformall.domain.po.WxCoupon" resultType="Long">
select sum(round(c.price/100,2)) from wx_coupon c,wx_coupon_order wco
select sum(round(c.sale_price/100,2)) from wx_coupon c,wx_coupon_order wco
where wco.coupon_id = c.id and wco.coupon_price > 0 and wco.coupon_order_status = 1 where wco.coupon_id = c.id and wco.coupon_price > 0 and wco.coupon_order_status = 1
and wco.create_date between #{startdate} and #{enddate} and wco.create_date between #{startdate} and #{enddate}
</select> </select>


<select id="findSumSubsidyMoney" parameterType="com.iformall.domain.po.WxCoupon" resultType="Long"> <select id="findSumSubsidyMoney" parameterType="com.iformall.domain.po.WxCoupon" resultType="Long">
select sum(sc.subsidy) from wx_coupon c
select sum(round(sc.subsidy/100,2)) from wx_coupon c
left join wx_coupon_order wo on wo.coupon_id = c.id left join wx_coupon_order wo on wo.coupon_id = c.id
left join wx_merchant_subsidy sc on sc.coupon_order_id = wo.id left join wx_merchant_subsidy sc on sc.coupon_order_id = wo.id
where c.type not in(8,9,100) and c.create_date between #{startdate} and #{enddate}
where c.type not in(8,9,100) and wo.coupon_order_status = 1
and c.create_date between #{startdate} and #{enddate}
</select> </select>






Ładowanie…
Anuluj
Zapisz