From 1b5800c788e8c9277a23f76666abc1b757d56b42 Mon Sep 17 00:00:00 2001
From: zrj <646384940@qq.com>
Date: Fri, 14 Jun 2024 15:53:25 +0800
Subject: [PATCH] 线上 es 全文检索升级到8.14.1 版本导致数据更新异常调整(不抛出异常),实际数据已经被操作

---
 src/main/java/org/springblade/modules/category/mapper/CategoryMapper.xml |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/category/mapper/CategoryMapper.xml b/src/main/java/org/springblade/modules/category/mapper/CategoryMapper.xml
index d50b2a7..0167d02 100644
--- a/src/main/java/org/springblade/modules/category/mapper/CategoryMapper.xml
+++ b/src/main/java/org/springblade/modules/category/mapper/CategoryMapper.xml
@@ -30,6 +30,7 @@
         <if test="category.parentNo!=null and category.parentNo!=''">
             and parent_no = #{category.parentNo}
         </if>
+        order by -sort desc
     </select>
 
     <select id="selectCategoryList" resultType="org.springblade.modules.category.dto.CategoryDTO">
@@ -60,6 +61,7 @@
     <select id="getTreeList" resultType="org.springblade.common.node.TreeIntegerNode">
         SELECT
             jc.category_no AS id,
+            jc.id AS ids,
             jc.category_no,
             jc.parent_no AS parentId,
             jc.category_name AS name,

--
Gitblit v1.9.3