|
@@ -14,9 +14,9 @@
|
|
|
|
|
|
|
|
|
<select id="productList" resultType="com.caimei365.user.model.vo.ProductItemVo">
|
|
|
- SELECT DISTINCT
|
|
|
- p.productID as productId,p.mainImage as image,p.name,p.price,s.name as shopName
|
|
|
- FROM `product` p
|
|
|
+ SELECT DISTINCT p.productID as productId,p.mainImage as image,p.name,
|
|
|
+ (select price from cm_sku where productId=p.productId order by price asc limit 1)as price,s.name as shopName
|
|
|
+ FROM product p
|
|
|
LEFT JOIN shop s ON s.shopID = p.shopID
|
|
|
LEFT JOIN cm_club_report cmc ON cmc.productID = p.productID
|
|
|
<where>
|