lyhzzz 2 years ago
parent
commit
8247a14841
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/resources/mapper/manage/NewsMapper.xml

+ 1 - 1
src/main/resources/mapper/manage/NewsMapper.xml

@@ -26,7 +26,7 @@
     <if test="param.title != null and param.title != ''">
       AND n.`title` LIKE concat('%', #{param.title}, '%')
     </if>
-    order by n.top_time desc, n.public_time desc
+    order by n.is_top desc, n.is_public desc ,n.create_time desc
   </select>