xiaoyong931011
2023-08-15 84c7afc62bb1eb6f5d80d2d9928d0d11a1ffbdda
src/main/resources/mapper/modules/MallShoppingCartMapper.xml
@@ -20,4 +20,20 @@
        select * from mall_shopping_cart
        where member_id=#{memberId} and sku_id=#{skuId}
    </select>
    <delete id="delBySkuId">
        delete from mall_shopping_cart
        where member_id=#{memberId} and sku_id=#{skuId}
    </delete>
    <delete id="deleteByGoodsId">
        delete from mall_shopping_cart
        where goods_id = #{goodsId}
    </delete>
    <delete id="deleteByGoodsIdAndSkuId">
        delete from mall_shopping_cart
        where goods_id = #{goodsId} and sku_id = #{skuId}
    </delete>
</mapper>