新增猜你喜欢

This commit is contained in:
苏元皓
2024-09-02 17:42:24 +08:00
parent 5dd7f7193f
commit 5eb573fb9d
10 changed files with 93 additions and 0 deletions

View File

@@ -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>