jyy
2021-03-18 b4990fac3b5cd0a936369dc51f8b3593b6478730
zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopShoppingCartDao.xml
@@ -223,7 +223,7 @@
   <update id="updateAllSelected" >
      update shop_shopping_cart set isSelected  = #{isSelected}  where  shop_id=#{shopId} and cart_user_id=#{openId} and art_type=#{artType}
      update shop_shopping_cart set isSelected  = #{isSelected}  where  shop_id=#{shopId} and cart_user_id=#{openId} and cart_type=#{cartType}
   </update>
@@ -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} and cart_type=#{cartType};
   </select>
   <!-- 根据id 锁表查询-->