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

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

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

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

@@ -790,7 +790,7 @@

(select count(wo.id) from wx_coupon wc
left join wx_order wo on wo.product_id = wc.id
where wo.order_status = 7 and wc.id = c.id) as press_succ_count,
where wo.order_status = 1 and wc.id = c.id) as press_succ_count,

(select count(wop.id) from wx_coupon wc
left join wx_order wo on wo.product_id = wc.id
@@ -902,7 +902,7 @@
<select id="pressSuccHistory" parameterType="com.iformall.domain.po.WxCoupon" resultType="com.iformall.domain.po.WxCoupon">
select DATE_FORMAT(wo.create_date,'%Y-%m-%d') xtime,count(wo.id) xcount from wx_coupon wc
left join wx_order wo on wo.product_id = wc.id
where wc.type = 8 and wo.order_status = 7
where wc.type = 8 and wo.order_status = 1
and wo.create_date between #{startdate} and #{enddate}
group by xtime
</select>
@@ -918,7 +918,7 @@
round(
(select count(wo.id) from wx_coupon wc
left join wx_order wo on wo.product_id = wc.id
where wo.order_status = 7 and wc.type = 8
where wo.order_status = 1 and wc.type = 8
and wo.create_date between #{startdate} and #{enddate})
/
(select count(wop.id) from wx_coupon wc


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