diff --git a/yami-shop-service/src/main/resources/mapper/BasketMapper.xml b/yami-shop-service/src/main/resources/mapper/BasketMapper.xml index 953d2803..dfc1f96d 100644 --- a/yami-shop-service/src/main/resources/mapper/BasketMapper.xml +++ b/yami-shop-service/src/main/resources/mapper/BasketMapper.xml @@ -58,7 +58,7 @@ ON tb.prod_id = tp.prod_id LEFT JOIN tz_sku ts ON tb.sku_id = ts.sku_id - WHERE tp.status = 0 OR ts.status = 0 AND tb.user_id = 1) AS temp) + WHERE tp.status = 0 OR ts.status = 0 AND tb.user_id = #{userId}) AS temp)