查询场馆列表数据

This commit is contained in:
limqhz
2021-03-04 15:22:05 +08:00
parent 4265bcd54d
commit 9601e1572e
4 changed files with 10 additions and 15 deletions

View File

@@ -612,13 +612,14 @@
a.sale_num as 'saleNum',(a.num-a.sale_num) as 'limitNum',
IFNULL(t.orderUsers,'暂无预订') as 'orderUsers',a.note
from sv_venue_lesson a LEFT JOIN
(select b.lesson_id,group_concat(d.nickname,'(',d.mobile,')') as 'orderUsers'
(select b.lesson_id,group_concat(d.nickname,'(',d.mobile,')','<![CDATA[ <br/> ]]>') as 'orderUsers'
from sv_member_lesson_ticket b , sv_member d
where b.member_id = d.id
and b.`status` != '2'
GROUP BY b.lesson_id) t on a.id = t.lesson_id
where a.date = #{searchDate}
where a.date <![CDATA[ >= ]]> NOW()
AND a.date <![CDATA[ <= ]]> DATE_ADD(NOW(),INTERVAL 2 DAY)
and a.venue_id = #{venueId}
</select>
</mapper>
</mapper>