소스 검색

历史记录倒序

chao 5 년 전
부모
커밋
ed0777784b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      product/src/main/resources/com-caimei-module-product/ProductModuleMapper.xml

+ 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