فهرست منبع

自动推荐,bugfix

chao 4 سال پیش
والد
کامیت
eb6760ee57
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      src/main/resources/mapper/PageMapper.xml

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

@@ -230,9 +230,9 @@
 			p.mainImage as image,
             IFNULL(p.visibility,3) as visibility
         from product as p
-        where
-			p.validFlag  = 2 and
-			p.tinyTypeID = (select tinyTypeID from product as p1 where p1.productID = #{productId})
+        where p.validFlag  = 2
+        and p.commodityType = (select commodityType from product as p1 where p1.productID = #{productId})
+        and p.smallTypeID = (select smallTypeID from product as p2 where p2.productID = #{productId})
         order by p.sellNumber desc limit 0,7
     </select>
     <select id="findCmPageById" resultType="com.caimei365.commodity.model.vo.CmPageVo">