zero 1 周之前
父節點
當前提交
8c869bb746
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/main/resources/mapper/ArticleInfoMapper.xml

+ 1 - 0
src/main/resources/mapper/ArticleInfoMapper.xml

@@ -78,6 +78,7 @@
         from article_info ai
         left join category ca on ca.id = ai.category_id
         <where>
+            ai.category_id in (1,2,3,4,5)
             <if test="vo.beginTime != null">
                 and ai.public_time &gt;= #{vo.beginTime}
             </if>