From 45889b86398acccce5ede4f437e8635e6ff6fd00 Mon Sep 17 00:00:00 2001 From: jiangqs <jiangqs> Date: 星期五, 19 五月 2023 20:05:14 +0800 Subject: [PATCH] demo补完 --- ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/mapper/order/ShoppingCartMapper.java | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/mapper/order/ShoppingCartMapper.java b/ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/mapper/order/ShoppingCartMapper.java index d610711..940dd1a 100644 --- a/ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/mapper/order/ShoppingCartMapper.java +++ b/ruoyi-modules/ruoyi-order/src/main/java/com/ruoyi/order/mapper/order/ShoppingCartMapper.java @@ -17,6 +17,8 @@ */ public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> { + + void deleteShoppingCartById(@Param("id") Long id); /** * 批量删除 * @param ids @@ -30,4 +32,10 @@ * @return */ List<AppShoppingCartVo> listShoppingCartVo(@Param("userId") Long userId, @Param("shopId")Long shopId); + + /** + * 删除购物车 + * @param + */ + void deleteByUserIdAndGoodsId(@Param("userId")Long userId,@Param("goodsId")String goodsId); } -- Gitblit v1.7.1