Duan_xu před 2 roky
rodič
revize
3c7272fba4
1 změnil soubory, kde provedl 8 přidání a 2 odebrání
  1. 8 2
      src/main/resources/mapper/PageMapper.xml

+ 8 - 2
src/main/resources/mapper/PageMapper.xml

@@ -873,8 +873,14 @@
         </where>
 
         #         order by p.combinationSort != 0 desc, p.combinationSort asc
-
-        order by p.sortIndex desc
+        # 		在设置重点关注时给排序值1000为了让重点关注始终在列表前端
+        <if test="sortIndex==1000">
+            ORDER BY p.newshowTime DESC
+        </if>
+        <if test="sortIndex!=1000">
+            order by p.sortIndex desc
+        </if>
+#         order by p.sortIndex desc
 
     </select>