Просмотр исходного кода

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

release_toaliyun_real
luozukai 7 лет назад
Родитель
Сommit
9798b80e2e
1 измененных файлов: 4 добавлений и 3 удалений
  1. +4
    -3
      mallinkService/src/main/resources/mapper/WxCouponMapper.xml

+ 4
- 3
mallinkService/src/main/resources/mapper/WxCouponMapper.xml Просмотреть файл

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

<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
and wco.create_date between #{startdate} and #{enddate}
</select>

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




Загрузка…
Отмена
Сохранить