| | |
| | | id, discuss_id, comment, is_topping, create_at, is_author, parent_id, user_id, reply_num |
| | | </sql> |
| | | |
| | | <select id="getDiscussCommentList" parameterType="com.panzhihua.common.model.dtos.community.PageComActDiscussCommentDTO" |
| | | resultType="com.panzhihua.common.model.vos.community.ComActDiscussCommentVO"> |
| | | SELECT |
| | | cadc.id, |
| | | cadc.`comment`, |
| | | cadc.`is_author`, |
| | | IFNULL( su.`name`, su.nick_name ) AS userNameBack, |
| | | cadc.create_at |
| | | FROM |
| | | com_act_discuss_comment AS cadc |
| | | LEFT JOIN sys_user AS su ON su.user_id = cadc.user_id |
| | | where cadc.parent_id = #{id} and cadc.is_del = 2 |
| | | </select> |
| | | |
| | | </mapper> |