Browse Source

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

huangzhiguo 1 year ago
parent
commit
9466248404
1 changed files with 4 additions and 1 deletions
  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">