jyy
2021-03-22 a17a3616fb0b59d61cda0f97c5005c18d97cdbee
zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopShoppingCartDao.xml
@@ -130,9 +130,6 @@
             and c.company_id = #{record.companyId}
          </if>
          <if test="record.cartType != null and record.cartType !='' ">
             and c.cart_type = #{record.cartType}
          </if>
      </if>
       
@@ -279,7 +276,8 @@
      p.img_mobile,
      p.img_pc,
      u.nick_name,
      s.NAME
      s.NAME,
          c.cart_type,
      from shop_shopping_cart c
      LEFT JOIN shop_product p ON c.cart_product_id = p.id
      LEFT JOIN shop_sku s ON c.cart_sku_id = s.id
@@ -336,7 +334,10 @@
         p.img_pc,
         p.buy_limit,
         s.NAME,
         s.stock
         s.stock,
         s.score_count,
         s.score_price,
             c.cart_type
      from shop_shopping_cart c
      LEFT JOIN shop_product p ON c.cart_product_id = p.id
      LEFT JOIN shop_sku s ON c.cart_sku_id = s.id
@@ -345,7 +346,6 @@
          and p.STATUS = 1
          and p.del_flag = 2
         and c.cart_user_id = #{cartUserId}
         and c.cart_type = #{cartType}
      order by c.create_time desc
   </select>
@@ -363,7 +363,7 @@
   <select id="selectUserCartCount" resultType="java.lang.Integer" >
      select sum(cart_number) from shop_shopping_cart  c
LEFT JOIN shop_product p on p.id = c.cart_product_id
where c.shop_Id=#{shopId} and  p.del_flag = 2 and cart_user_id=#{openId};
where c.shop_Id=#{shopId} and  p.del_flag = 2 and cart_user_id=#{openId}
   </select>
   <!-- 根据id 锁表查询-->