yxk-20260714

我的已阅 :按 read_time 倒序排序,最新已阅的排最前。
This commit is contained in:
ye1023
2026-07-14 15:25:48 +08:00
parent 17ef0fb722
commit 94b94bca53
@@ -61,7 +61,14 @@
<if test="processDefinitionName != null and processDefinitionName != ''">
AND arp.NAME_ LIKE concat(concat('%', #{processDefinitionName}), '%')
</if>
ORDER BY COALESCE(cc.CREATE_TIME, aht.END_TIME_, aht.START_TIME_) DESC, cc.ID DESC
<choose>
<when test="isRead != null and isRead == 1">
ORDER BY cc.READ_TIME DESC, cc.ID DESC
</when>
<otherwise>
ORDER BY COALESCE(cc.CREATE_TIME, aht.END_TIME_, aht.START_TIME_) DESC, cc.ID DESC
</otherwise>
</choose>
</select>
</mapper>