From 1d46da8398b3652cbc7ef0731bff5e0f20f8774e Mon Sep 17 00:00:00 2001 From: zio Date: Tue, 14 Jul 2026 01:51:47 +0900 Subject: [PATCH] fix(ticket): escape <= in TicketMapper.xml SELECTs (boot crash, stale-jar rollback) Unescaped <= at findProducts/findProduct broke SqlSessionFactory XML parsing, crashing every new jar at startup; deploy rolled back to the pre-V50 jar, so V50/V51 never reached prod and the admin demo account lost event membership again (floorplan menu fell back to /home). Co-Authored-By: Claude Fable 5 --- .../src/main/resources/mybatis/mapper/TicketMapper.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/backend/src/main/resources/mybatis/mapper/TicketMapper.xml b/src/backend/src/main/resources/mybatis/mapper/TicketMapper.xml index 628f1e7..4204123 100644 --- a/src/backend/src/main/resources/mybatis/mapper/TicketMapper.xml +++ b/src/backend/src/main/resources/mybatis/mapper/TicketMapper.xml @@ -24,10 +24,10 @@ (total_qty - sold_qty) AS "remaining", max_per_order AS "maxPerOrder", CASE WHEN status = 'active' - AND (sale_start IS NULL OR sale_start <= now()) - AND (sale_end IS NULL OR sale_end >= now()) + AND (sale_start IS NULL OR sale_start <= now()) + AND (sale_end IS NULL OR sale_end >= now()) THEN true ELSE false END AS "onSale", - CASE WHEN (total_qty - sold_qty) <= 0 THEN true ELSE false END AS "soldOut", + CASE WHEN (total_qty - sold_qty) <= 0 THEN true ELSE false END AS "soldOut", sort_order AS "sortOrder" FROM ticket_product WHERE tenant_id = 'KINTEX' @@ -48,8 +48,8 @@ status, (total_qty - sold_qty) AS "remaining", CASE WHEN status = 'active' - AND (sale_start IS NULL OR sale_start <= now()) - AND (sale_end IS NULL OR sale_end >= now()) + AND (sale_start IS NULL OR sale_start <= now()) + AND (sale_end IS NULL OR sale_end >= now()) THEN true ELSE false END AS "onSale" FROM ticket_product WHERE tenant_id = 'KINTEX'