Initial commit
This commit is contained in:
@@ -8,7 +8,10 @@
|
||||
SELECT
|
||||
tr.id,
|
||||
tr.roll_type,
|
||||
trj.total_price as total_ornaments_price,
|
||||
(SELECT COALESCE(SUM(tto.use_price * trjo.ornaments_num), 0)
|
||||
FROM tt_roll_jackpot_ornaments trjo
|
||||
LEFT JOIN tt_ornament tto ON trjo.ornaments_id = tto.id
|
||||
WHERE trjo.jackpot_id = tr.jackpot_id) as total_ornaments_price,
|
||||
CASE
|
||||
WHEN tr.roll_type = '0' THEN '官方房'
|
||||
WHEN tr.roll_type = '1' THEN '主播房'
|
||||
@@ -25,7 +28,6 @@
|
||||
tr.min_recharge
|
||||
FROM tt_roll tr
|
||||
LEFT JOIN tt_user tu ON tr.user_id = tu.user_id
|
||||
LEFT JOIN tt_roll_jackpot trj ON tr.jackpot_id = trj.jackpot_id
|
||||
<where>
|
||||
<if test="rollName != null"> AND tr.roll_name LIKE CONCAT("%",#{rollName},"%") </if>
|
||||
<if test="rollStatus != null"> AND tr.roll_status = #{rollStatus} </if>
|
||||
|
||||
Reference in New Issue
Block a user