@@ -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},'%')
</where>
+ order by addTime desc
<if test="limitNum != null">
limit #{limitNum}