提交 0a6f3bb8 authored 作者: luojie's avatar luojie

修改优惠券排序

上级 07a0de74
...@@ -289,7 +289,7 @@ ...@@ -289,7 +289,7 @@
t2.coupon_vaild t2.coupon_vaild
from tb_cf_coupon t2 left join tb_cf_toicoupon t3 on t3.coupon_id=t2.coupon_id from tb_cf_coupon t2 left join tb_cf_toicoupon t3 on t3.coupon_id=t2.coupon_id
where t3.user_id=#{userId} and t3.enable_flag=1 and t2.status=1 where t3.user_id=#{userId} and t3.enable_flag=1 and t2.status=1
and (<![CDATA[ t3.start_time<=#{nowTime}]]> and <![CDATA[t3.end_time>=#{nowTime}]]>) and (<![CDATA[ t3.start_time<=#{nowTime}]]> and <![CDATA[t3.end_time>=#{nowTime}]]>) ORDER BY deduct_amount desc
</select> </select>
...@@ -324,7 +324,7 @@ ...@@ -324,7 +324,7 @@
t2.update_time, t2.update_time,
t2.coupon_vaild t2.coupon_vaild
from tb_cf_coupon t2 left join tb_cf_toicoupon t3 on t3.coupon_id=t2.coupon_id from tb_cf_coupon t2 left join tb_cf_toicoupon t3 on t3.coupon_id=t2.coupon_id
where t3.user_id=#{userId} and t3.enable_flag=0 where t3.user_id=#{userId} and t3.enable_flag=0 ORDER BY deduct_amount desc
</select> </select>
...@@ -354,7 +354,7 @@ ...@@ -354,7 +354,7 @@
t2.update_time, t2.update_time,
t2.coupon_vaild t2.coupon_vaild
from tb_cf_coupon t2 left join tb_cf_toicoupon t3 on t3.coupon_id=t2.coupon_id from tb_cf_coupon t2 left join tb_cf_toicoupon t3 on t3.coupon_id=t2.coupon_id
where t3.user_id=#{userId} and <![CDATA[ t3.end_time<#{nowTime}]]> and t3.enable_flag=1 where t3.user_id=#{userId} and <![CDATA[ t3.end_time<#{nowTime}]]> and t3.enable_flag=1 ORDER BY deduct_amount desc
</select> </select>
<select id="getCouponAndVaildAll" resultType="com.diaoyun.zion.chinafrica.entity.TbCfCouponEntity"> <select id="getCouponAndVaildAll" resultType="com.diaoyun.zion.chinafrica.entity.TbCfCouponEntity">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论