diff --git a/pending_bookings.php b/pending_bookings.php index 553cc25..7415727 100644 --- a/pending_bookings.php +++ b/pending_bookings.php @@ -120,8 +120,8 @@ $booking_schedule = []; $bookings_by_date = []; try { - // 获取所有未来的预约 - $stmt = $pdo->prepare("SELECT * FROM bookings WHERE end_time > NOW() ORDER BY start_time ASC"); + // 获取所有未来的预约(排除已取消的订单) + $stmt = $pdo->prepare("SELECT * FROM bookings WHERE end_time > NOW() AND status != '已取消' ORDER BY start_time ASC"); $stmt->execute(); $all_bookings = $stmt->fetchAll();