update BaseMapper list rename to select
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<select id="countByPage" resultType="long">
|
||||
SELECT COUNT(1) <include refid="normalCondition" />
|
||||
</select>
|
||||
<select id="listByPage" resultType="com.imyeyu.api.modules.blog.entity.Article">
|
||||
<select id="selectByPage" resultType="com.imyeyu.api.modules.blog.entity.Article">
|
||||
SELECT
|
||||
<include refid="listColumn" />
|
||||
<include refid="normalCondition" />
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<mapper namespace="com.imyeyu.api.modules.common.mapper.CommentMapper">
|
||||
<sql id="table">comment</sql>
|
||||
<!-- 主评论 -->
|
||||
<select id="list" resultMap="listResult">
|
||||
<select id="selectByPage" resultMap="selectResult">
|
||||
SELECT
|
||||
-- 主评论
|
||||
comment.id,
|
||||
@@ -77,7 +77,7 @@
|
||||
ON
|
||||
reply_count.id = comment.id
|
||||
</select>
|
||||
<resultMap id="listResult" type="com.imyeyu.api.modules.common.vo.comment.CommentView">
|
||||
<resultMap id="selectResult" type="com.imyeyu.api.modules.common.vo.comment.CommentView">
|
||||
<id property="id" column="id" />
|
||||
<result property="userId" column="user_id" />
|
||||
<result property="nick" column="nick" />
|
||||
@@ -96,7 +96,7 @@
|
||||
<result property="createdAt" column="reply_created_at" />
|
||||
</collection>
|
||||
</resultMap>
|
||||
<select id="countAll" resultType="long">
|
||||
<select id="countByPage" resultType="long">
|
||||
SELECT
|
||||
SUM(result.total_comment + result.total_reply)
|
||||
FROM (
|
||||
|
||||
Reference in New Issue
Block a user