|
@@ -230,9 +230,9 @@
|
|
p.mainImage as image,
|
|
p.mainImage as image,
|
|
IFNULL(p.visibility,3) as visibility
|
|
IFNULL(p.visibility,3) as visibility
|
|
from product as p
|
|
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
|
|
order by p.sellNumber desc limit 0,7
|
|
</select>
|
|
</select>
|
|
<select id="findCmPageById" resultType="com.caimei365.commodity.model.vo.CmPageVo">
|
|
<select id="findCmPageById" resultType="com.caimei365.commodity.model.vo.CmPageVo">
|