@@ -19,7 +19,7 @@
WHERE
br.booking_type = 1
AND br.room_id IS NOT NULL
- AND o.booking_status = 1
+ AND (o.booking_status = 1 or o.booking_status = 3)
and TIMESTAMPDIFF(minute, ADDDATE(now(),INTERVAL 8 HOUR),o.arrival_time) > -2 -- 订单超过当前时间2分钟以后 则不算入已预定中 时间 > -2 算是正常预约,超过的一律算做超时订单
AND (
( o.arrival_time <= #{startOf} AND o.due_out_time >= #{startOf} ) -- 预抵时间在别的客人预定时间范围内