Aslee há 3 anos atrás
pai
commit
387164f622

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

@@ -697,7 +697,7 @@
         where productId = #{productId}
     </select>
     <select id="getSidebarBaike" resultType="com.caimei365.commodity.model.vo.BaikeProductVo">
-        select id as productId, commodityType, name, image
+        select id as productId, commodityType, name, image, publishTime
         from cm_baike_product
         WHERE topPosition IN (1, 2, 3)
         and status = 1 and NOW() > publishTime

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

@@ -409,6 +409,7 @@
         left join info_praise c on a.id = c.infoId
         <where>
             a.enabledStatus = 1
+            and a.auditStatus = 1
             <if test="articleId != null">
                 and a.id = #{articleId}
             </if>