浏览代码

获取文章列表BUG修复 加入抽奖,下载,评论

fangqing 5 月之前
父节点
当前提交
b09ac8410f
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      ruoyi-generator/src/main/resources/mapper/community/ArticleMapper.xml

+ 6 - 0
ruoyi-generator/src/main/resources/mapper/community/ArticleMapper.xml

@@ -16,6 +16,9 @@
         <result property="remark" column="remark"/>
         <result property="userName" column="user_name"/>
         <result property="nickName" column="nick_name"/>
+        <result property="comment" column=" is_comment"/>
+        <result property="raffle" column="is_raffle"/>
+        <result property="download" column="is_download"/>
         <result property="email" column="email"/>
         <result property="avatar" column="avatar"/>
         <result property="pageViews" column="pageViews"/>
@@ -108,6 +111,9 @@
         a.create_time as article_create_time,
         a.update_by as article_update_by,
         a.update_time as article_update_time,
+        a.is_comment,
+        a.is_raffle,
+        a.is_download,
         COALESCE((
         SELECT
         JSON_ARRAYAGG(