浏览代码

百科列表sql更新

Aslee 3 年之前
父节点
当前提交
7935078a46
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/resources/mapper/PageMapper.xml

+ 1 - 1
src/main/resources/mapper/PageMapper.xml

@@ -713,7 +713,7 @@
         select id as productId, commodityType, image, name, discription, publishTime, (basePv + actualPv) as pv
         select id as productId, commodityType, image, name, discription, publishTime, (basePv + actualPv) as pv
         from cm_baike_product
         from cm_baike_product
         <where>
         <where>
-            status = 1 and NOW() > publishTime and delFlag = 0 and auditStatus = 2
+            status = 1 and NOW() > publishTime and delFlag = 0 and auditStatus = 2 and onlineStatus = 2
             <if test="typeId != null">
             <if test="typeId != null">
                 and typeId = #{typeId}
                 and typeId = #{typeId}
             </if>
             </if>