查询场馆列表数据

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

@@ -136,9 +136,8 @@ public interface VenueLessonMapper {
/**
* APP获取当前预订情况
* @param venueId
* @param searchDate
* and b.date = #{searchDate} and b.venue_id = #{venueId}
* @return
*/
List<VenueLessonStatus> getLessonStatus(@Param("venueId") Integer venueId,@Param("searchDate") String searchDate);
}
List<VenueLessonStatus> getLessonStatus(@Param("venueId") Integer venueId);
}

View File

@@ -325,9 +325,8 @@ public class VenueLessonService extends BaseServiceImpl {
}
@Transactional
public List<VenueLessonStatus> getLessonOrder(Integer venueId,String searchDate){
// 校验场馆是否存在 TODO
return venueLessonMapper.getLessonStatus(venueId,searchDate);
public List<VenueLessonStatus> getLessonOrder(Integer venueId){
return venueLessonMapper.getLessonStatus(venueId);
}
}

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>