feat: 新增小说点击量增加接口

This commit is contained in:
xiongxiaoyang
2022-05-15 21:40:25 +08:00
parent 960b9124d5
commit 63bfacccb7
5 changed files with 36 additions and 4 deletions

View File

@ -2,4 +2,10 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="io.github.xxyopen.novel.dao.mapper.BookInfoMapper">
<update id="addVisitCount">
update book_info
set visit_count = visit_count + 1
where id = #{bookId}
</update>
</mapper>