linwei
2024-01-02 dc88efd5f9db8896437df6edb3251e5e81f3df18
文章评论查询出用户头像及手机号
1 files modified
7 ■■■■■ changed files
src/main/java/org/springblade/modules/article/mapper/ArticleCommentMapper.xml 7 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/article/mapper/ArticleCommentMapper.xml
@@ -55,9 +55,9 @@
        jac.check_remark,
        jac.create_time,
        jac.is_deleted,
        bu.`real_name`,
        bu.`real_name` name,
        bu.`avatar`,
        bu.`phone`,
        bu.`phone` phone,
        ja.title
        FROM
        jczz_article_comment jac
@@ -82,7 +82,8 @@
            <if test="noticeComment.phone != null ">and bu.phone like concat('%',#{noticeComment.phone},'%')</if>
            <if test="noticeComment.name != null ">and bu.name like concat('%',#{noticeComment.name},'%')</if>
            <if test="noticeComment.title != null ">and ja.title  like concat('%',#{noticeComment.title},'%') </if>
            and  jac.user_id is not null
            and jac.user_id is not null
            order by jac.create_time desc
        </where>
    </select>