|
@@ -45,9 +45,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
<select id="selectFsStoreCartCount" resultType="java.lang.Integer">
|
|
|
select ifnull(sum(c.cart_num),0)
|
|
|
- from fs_store_cart c
|
|
|
- inner join fs_store_product p on p.product_id=c.product_id
|
|
|
- inner join fs_store_product_attr_value v on v.id=c.product_attr_value_id
|
|
|
+ from fs_store_cart_scrm c
|
|
|
+ inner join fs_store_product_scrm p on p.product_id=c.product_id
|
|
|
+ inner join fs_store_product_attr_value_scrm v on v.id=c.product_attr_value_id
|
|
|
where c.is_pay=0 and c.is_del=0 and c.is_buy=0 and c.is_gift = 0 and p.is_show=1 and p.is_del=0
|
|
|
<if test = 'maps.userId != null '>
|
|
|
and c.user_id =#{maps.userId}
|