Browse Source

Merge remote-tracking branch 'origin/developer' into developerB

huangzhiguo 1 năm trước cách đây
mục cha
commit
9466248404
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      src/main/resources/mapper/KeyWordDao.xml

+ 4 - 1
src/main/resources/mapper/KeyWordDao.xml

@@ -66,13 +66,16 @@
         <if test="labelStatus == 1">
             AND cusf.dynamicStatus = 0
         </if>
+        <if test="labelStatus == null">
+            AND (cusf.dynamicStatus not in (0, 1) or (cusf.dynamicStatus IS NULL))
+        </if>
         <if test="labelStatus !=null">
             AND cusf.trueStatus = #{labelStatus}
         </if>
         <if test="fromSearch != null">
             AND cusf.fromSearch = #{fromSearch}
         </if>
-        ORDER BY cusf.addTime DESC, cusf.searchTime DESC
+        ORDER BY cusf.frequency DESC, cusf.searchTime DESC
     </select>
 
     <select id="findRecommendList" resultType="com.caimei365.manager.entity.caimei.KeyWord">