소스 검색

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>