From bd6e20814ea5abd66fef30a76053dca74e756f92 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 17 三月 2025 16:36:57 +0800
Subject: [PATCH] 项目库排序分页调整、bug

---
 business/src/main/resources/mapper/ProjectInfoMapper.xml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/business/src/main/resources/mapper/ProjectInfoMapper.xml b/business/src/main/resources/mapper/ProjectInfoMapper.xml
index ea83801..36801ea 100644
--- a/business/src/main/resources/mapper/ProjectInfoMapper.xml
+++ b/business/src/main/resources/mapper/ProjectInfoMapper.xml
@@ -175,7 +175,7 @@
                 ${query.params.dataScope}
             </if>
         </where>
-        order by TPI.id DESC
+        ORDER BY FIELD(TPI.used_status, 1, -1, 0, 2), TPI.gmt_create DESC
     </select>
 
     <select id="homeCount" parameterType="com.ycl.common.core.domain.BaseEntity" resultType="com.ycl.domain.vo.ProjectVO">

--
Gitblit v1.8.0