Service,dao层,视图,模型修改 单元测试
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
<select id="findCommentById" resultMap="commentViewResultMap">
|
||||
select *
|
||||
from commentView
|
||||
where commentId = #{id}
|
||||
where commentId = #{sqid}
|
||||
</select>
|
||||
|
||||
<select id="findAllByFromUser" resultMap="commentViewResultMap">
|
||||
@@ -89,6 +89,13 @@
|
||||
where pagePath = #{pagePath}
|
||||
</select>
|
||||
|
||||
<select id="findAllByPagePathAndFromUser" resultMap="commentViewResultMap">
|
||||
select *
|
||||
from commentView
|
||||
where pagePath = #{pagePath}
|
||||
and fromAuthorId = #{userId}
|
||||
</select>
|
||||
|
||||
<select id="findAllByPagePathAndPid" resultMap="commentViewResultMap">
|
||||
select *
|
||||
from commentView
|
||||
@@ -110,7 +117,8 @@
|
||||
|
||||
<select id="count" resultType="long">
|
||||
select count(*)
|
||||
from article where is_delete = false;
|
||||
from article
|
||||
where is_delete = false;
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user