Browse Source

商品相关推荐

Aslee 4 năm trước cách đây
mục cha
commit
c1473e6f88
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/main/resources/mapper/ProductMapper.xml

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

@@ -64,7 +64,7 @@
         from product as p
         left join cm_product_recommend as pr on pr.recommendProductID = p.productID
         where
-            p.productID = #{productId} and validFlag  = 2
+            pr.productID = #{productId} and p.validFlag  = 2
         order by pr.sort desc
 	</select>
 	<select id="getAutoProductRecommends" resultType="com.caimei.www.pojo.page.ProductList">