浏览代码

bugfix-供应商百科

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

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

@@ -713,7 +713,7 @@
         select id as productId, commodityType, image, name, discription, publishTime, (basePv + actualPv) as pv
         from cm_baike_product
         <where>
-            status = 1 and NOW() > publishTime and delFlag = 0
+            status = 1 and NOW() > publishTime and delFlag = 0 and auditStatus = 2
             <if test="typeId != null">
                 and typeId = #{typeId}
             </if>
@@ -721,6 +721,7 @@
                 and name like concat ('%',#{keyword},'%')
             </if>
         </where>
+        order by addTime desc
         <if test="limitNum != null">
             limit #{limitNum}
         </if>