This commit is contained in:
dzc committed 2025-06-26 11:07:07 +08:00
1 parent f1e7de9616
commit 0a59a6d105
1 file changed
+8 -2
@@ -72,8 +72,14 @@
<if test="dto.processStatus != null and dto.processStatus == 2">
order by a.process_time desc , a.id desc
</if>
<if test="dto.processStatus != null and dto.processStatus != 2">
order by a.apply_time desc , a.create_time desc
<if test="dto.processStatus == null or dto.processStatus != 2">
ORDER BY
CASE
WHEN a.apply_time IS NULL THEN 1
ELSE 0
END ASC,
a.apply_time DESC,
a.create_time DESC
</if>
</sql>