Browse Source

历史记录倒序

chao 5 years ago
parent
commit
ed0777784b

+ 1 - 0
product/src/main/resources/com-caimei-module-product/ProductModuleMapper.xml

@@ -119,6 +119,7 @@
         select id, userId, searchWord, searchDate, delFlag
         from user_search_history
         where userId = #{userId,jdbcType=BIGINT}
+        order by id desc
     </select>
     <select id="getSearchHistoryIdByWord" resultType="java.lang.Long">
         select id