From 5e49ed67e8980d649201aab001511aec4f03bfeb Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期二, 29 十月 2024 17:19:43 +0800
Subject: [PATCH] 演示
---
src/main/resources/mapper/ExamMapper.xml | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/ExamMapper.xml b/src/main/resources/mapper/ExamMapper.xml
index 543b5cd..89a9bc4 100644
--- a/src/main/resources/mapper/ExamMapper.xml
+++ b/src/main/resources/mapper/ExamMapper.xml
@@ -105,7 +105,7 @@
<if test="query.status != null and query.status != ''">
AND TE.status = #{query.status}
</if>
- ORDER BY orderc, TE.create_time DESC
+ ORDER BY FIELD(TE.status, 'ing', 'not_start', 'finished'), orderc, TE.create_time DESC
</select>
</mapper>
--
Gitblit v1.8.0