linwe
2023-11-25 aa6df327e9c022e4a89baef1462f3f868dce1fd2
src/main/java/org/springblade/modules/article/mapper/ArticleMapper.xml
@@ -95,14 +95,21 @@
        ja.update_user,
        ja.create_user,
        ja.is_deleted,
        bdb.dict_value dictValue
        bdb.dict_value dictValue,
        jpd.id pdId,
        jpd.event_type
        from jczz_article ja LEFT JOIN blade_dict_biz bdb on ja.article_type = bdb.dict_key
        LEFT JOIN jczz_public_discuss jpd on jpd.article_id=ja.id
        where ja.is_deleted = 0
        and ja.publish = 1
        and bdb.parent_id = '1722966265111248897'
        <if test="article.articleType != null and article.articleType != ''">
          and  ja.article_type = #{article.articleType}
        </if>
        <if test="article.eventType != null">
            and  jpd.event_type = #{article.eventType}
        </if>
        order by ja.create_time desc
    </select>