فهرست منبع

为你推荐-修复bug 商品只显示一条

zhangxin 3 هفته پیش
والد
کامیت
4c456ae797
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      yami-shop-service/src/main/resources/mapper/ProductMapper.xml

+ 1 - 0
yami-shop-service/src/main/resources/mapper/ProductMapper.xml

@@ -925,6 +925,7 @@
         <foreach collection="list" item="item" open="(" close=")" separator=",">
             (#{item.shopId}, #{item.prodId})
         </foreach>
+        GROUP BY p.prod_id
         order by  i.count DESC
     </select>