|
@@ -44,6 +44,7 @@
|
|
|
if(t1.prize_type = 'goods' AND t2.title is not null ,t2.title,t1.title) as title,
|
|
|
if(t1.prize_type = 'goods' AND t2.pic_url is not null,t2.pic_url,t1.pic_url) as pic_url,
|
|
|
if(t1.prize_type = 'goods' AND t2.value is not null,t2.value,t1.value) as value,
|
|
|
+ if(t1.prize_type = 'goods' AND t2.cost is not null,t2.cost,0) as cost,
|
|
|
t1.*
|
|
|
from mp_ticket_awards_prize t1
|
|
|
left join mp_goods t2 on t1.ref_id = t2.goods_id
|