|
@@ -28,7 +28,11 @@
|
|
|
|
|
|
<select id="listPrizeVO" resultType="com.qs.mp.admin.domain.vo.TicketAwardsPrizeVO">
|
|
<select id="listPrizeVO" resultType="com.qs.mp.admin.domain.vo.TicketAwardsPrizeVO">
|
|
select
|
|
select
|
|
- if(t2.prize_type = 'goods' AND t3.title is not null,t3.title,t2.title) as title,
|
|
|
|
|
|
+ case t2.prize_type
|
|
|
|
+ when 'goods' then if(t3.title is not null, t3.title, t2.title)
|
|
|
|
+ when 'coupon' then if(t4.title is not null, t4.title, t2.title)
|
|
|
|
+ else t2.title
|
|
|
|
+ end as title,
|
|
if(t2.prize_type = 'goods' AND t3.title is not null,t3.pic_url,t2.pic_url) as pic_url,
|
|
if(t2.prize_type = 'goods' AND t3.title is not null,t3.pic_url,t2.pic_url) as pic_url,
|
|
if(t2.prize_type = 'goods' AND t3.value is not null,t3.value,t2.value) as value,
|
|
if(t2.prize_type = 'goods' AND t3.value is not null,t3.value,t2.value) as value,
|
|
if(t4.coupon_detail is not null, t4.coupon_detail, '') as coupon_detail,
|
|
if(t4.coupon_detail is not null, t4.coupon_detail, '') as coupon_detail,
|