forked from iVMiku/guidance-backend
新增猜你喜欢
This commit is contained in:
@@ -108,5 +108,11 @@
|
||||
ORDER BY COUNT(f.id) DESC
|
||||
LIMIT #{limit}
|
||||
</select>
|
||||
<select id="getPostsBasedOnHistoryAndHotness" resultType="com.ivmiku.tutorial.entity.Post">
|
||||
SELECT *
|
||||
FROM post
|
||||
WHERE content LIKE CONCAT('%', #{searchHistory}, '%')
|
||||
ORDER BY hotness DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user