From 0b0703856bcfec35967cabae6cf9c795b7dcaaef Mon Sep 17 00:00:00 2001 From: liu <liujiatong112@163.com> Date: Fri, 2 Aug 2024 14:56:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/ModelCaseMapper.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/mapper/ModelCaseMapper.xml b/src/main/resources/mapper/ModelCaseMapper.xml index da0fc2f..ab5f2af 100644 --- a/src/main/resources/mapper/ModelCaseMapper.xml +++ b/src/main/resources/mapper/ModelCaseMapper.xml @@ -31,6 +31,7 @@ <if test="modelCase.updateEndTime != null"> and DATE_FORMAT(update_time, '%Y-%m-%d') <= DATE_FORMAT(#{modelCase.updateEndTime}, '%Y-%m-%d') </if> + order by index_num desc </select> <select id="selectMaxIndex" resultType="java.lang.Integer"> select ifnull(max(index_num), 0)