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

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

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

+ 9
- 9
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
<if test="id != null">
and c.id = #{id}
<if test="title != null">
and c.title = concat('%', #{title},'%')
</if>
order by c.status asc,c.create_date desc
</select>
@@ -769,8 +769,8 @@
<if test=" 2 == type ">
and c.sale_price = 0
</if>
<if test="id != null">
and c.id = #{id}
<if test="title != null">
and c.title = concat('%', #{title},'%')
</if>
order by c.status asc,c.create_date desc
</select>
@@ -804,8 +804,8 @@
*100,2) as payment_rate

from wx_coupon c where c.type = 8
<if test="id != null">
and c.id = #{id}
<if test="title != null">
and c.title = concat('%', #{title},'%')
</if>
order by c.status asc,c.create_date desc
</select>
@@ -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
</select>

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

@@ -869,7 +869,7 @@
<select id="findSumPricePayMent" parameterType="com.iformall.domain.po.WxCoupon" resultType="String">
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}
and wco.update_date between #{startdate} and #{enddate}
</select>

<select id="findSumSubsidyMoney" parameterType="com.iformall.domain.po.WxCoupon" resultType="String">


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