Browse Source

话题评论列表添加条件and `STATUS`='discussing'

dev_shibei_match
yinzuomei 4 years ago
parent
commit
6dea3eeff5
  1. 24
      epmet-module/resi-group/resi-group-server/src/main/resources/mapper/topic/ResiTopicCommentDao.xml

24
epmet-module/resi-group/resi-group-server/src/main/resources/mapper/topic/ResiTopicCommentDao.xml

@ -54,20 +54,20 @@
<!-- 分页查询某个话题下的评论列表 --> <!-- 分页查询某个话题下的评论列表 -->
<select id="getCommentList" parameterType="com.epmet.resi.group.dto.comment.form.ResiQueryCommentFormDTO" resultType="com.epmet.resi.group.dto.comment.result.ResiCommentResultDTO"> <select id="getCommentList" parameterType="com.epmet.resi.group.dto.comment.form.ResiQueryCommentFormDTO" resultType="com.epmet.resi.group.dto.comment.result.ResiCommentResultDTO">
SELECT SELECT
ID AS commentId, ID AS commentId,
COMMENT_CONTENT, COMMENT_CONTENT,
STATUS AS commentStatus, STATUS AS commentStatus,
CREATED_TIME AS commentTime, CREATED_TIME AS commentTime,
CREATED_BY AS userId CREATED_BY AS userId
FROM FROM
RESI_TOPIC_COMMENT RESI_TOPIC_COMMENT
WHERE WHERE
DEL_FLAG = '0' DEL_FLAG = '0'
AND and `STATUS`='discussing'
TOPIC_ID = #{topicId} AND TOPIC_ID = #{topicId}
ORDER BY CREATED_TIME DESC ORDER BY
LIMIT CREATED_TIME DESC
#{pageNo},#{pageSize} LIMIT #{pageNo},#{pageSize}
</select> </select>
<select id="selectTopicList" resultType="java.lang.String"> <select id="selectTopicList" resultType="java.lang.String">

Loading…
Cancel
Save