From c44dbd16d1973c34d1e4145aa1fd696438497e87 Mon Sep 17 00:00:00 2001 From: "DESKTOP-DDTUS3E\\yaxin" Date: Sat, 14 Sep 2024 17:47:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4=E6=A1=88=E4=BB=B6=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=8E=92=E5=BA=8F=E8=A7=84=E5=88=99=E4=B8=BA=E6=A1=88?= =?UTF-8?q?=E4=BB=B6=E5=BE=97=E5=88=86=EF=BC=8C=E9=BB=98=E8=AE=A4=E9=99=8D?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/supervision/police/vo/ModelCaseVO.java | 3 +++ src/main/resources/mapper/ModelCaseMapper.xml | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/supervision/police/vo/ModelCaseVO.java b/src/main/java/com/supervision/police/vo/ModelCaseVO.java index a42ad87..42fb607 100644 --- a/src/main/java/com/supervision/police/vo/ModelCaseVO.java +++ b/src/main/java/com/supervision/police/vo/ModelCaseVO.java @@ -38,6 +38,9 @@ public class ModelCaseVO { @Schema(description = "当事人") private String lawParty; + @Schema(description = "排序类型") + private String orderType = "DESC"; + @Schema(description = "删除状态,默认查询未删除数据") private Boolean isDelete = false; diff --git a/src/main/resources/mapper/ModelCaseMapper.xml b/src/main/resources/mapper/ModelCaseMapper.xml index c2391d2..df53da5 100644 --- a/src/main/resources/mapper/ModelCaseMapper.xml +++ b/src/main/resources/mapper/ModelCaseMapper.xml @@ -47,7 +47,12 @@ and DATE_FORMAT(update_time, '%Y-%m-%d') <= DATE_FORMAT(#{modelCase.updateEndTime}, '%Y-%m-%d') - order by index_num,update_time desc + + order by total_score desc + + + order by total_score asc +