把进行中放在第一个

This commit is contained in:
milimoe 2026-05-10 13:49:05 +08:00
parent c40a2b095f
commit df4acc9a04
Signed by: milimoe
GPG Key ID: 9554D37E4B8991D0

View File

@ -97,7 +97,7 @@ namespace Oshima.FunGame.WebAPI.Services
FROM csbetting_matches
WHERE event_id = @eid
ORDER BY
CASE status WHEN 0 THEN 0 WHEN 1 THEN 1 ELSE 2 END,
CASE status WHEN 1 THEN 0 WHEN 0 THEN 1 ELSE 2 END,
CASE WHEN status = 2 THEN start_time END DESC,
CASE WHEN status != 2 THEN start_time END ASC
LIMIT {pageSize} OFFSET {offset}");