案件列表默认根据创建时间倒序排列

topo_dev
DESKTOP-DDTUS3E\yaxin 6 months ago
parent 71fe10d7a4
commit 7eb0459433

@ -41,6 +41,9 @@ public class ModelCaseVO {
@Schema(description = "排序类型")
private String orderType = "DESC";
@Schema(description = "排序类型")
private String orderBy = "create_time";
@Schema(description = "删除状态,默认查询未删除数据")
private Boolean isDelete = false;

@ -48,10 +48,10 @@
and DATE_FORMAT(update_time, '%Y-%m-%d') <= DATE_FORMAT(#{modelCase.updateEndTime}, '%Y-%m-%d')
</if>
<if test="modelCase.orderType == 'DESC'">
order by total_score desc
order by ${modelCase.orderBy} desc
</if>
<if test="modelCase.orderType == 'ASC'">
order by total_score asc
order by ${modelCase.orderBy} asc
</if>
</select>
<select id="selectMaxIndex" resultType="java.lang.Integer">

Loading…
Cancel
Save