package com.ruoyi.order.mapper.order;
|
|
import com.ruoyi.order.domain.pojo.order.ShoppingCart;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.ruoyi.order.domain.vo.AppShoppingCartVo;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* <p>
|
* 购物车 Mapper 接口
|
* </p>
|
*
|
* @author jqs
|
* @since 2023-04-25
|
*/
|
public interface ShoppingCartMapper extends BaseMapper<ShoppingCart> {
|
|
|
void deleteShoppingCartById(@Param("id") Long id);
|
/**
|
* 批量删除
|
* @param ids
|
*/
|
void deleteShoppingCartByIds(List<String> ids);
|
|
/**
|
*
|
* @param userId
|
* @param shopId
|
* @return
|
*/
|
List<AppShoppingCartVo> listShoppingCartVo(@Param("userId") Long userId, @Param("shopId")Long shopId);
|
|
/**
|
* 删除购物车
|
* @param
|
*/
|
void deleteByUserIdAndGoodsId(@Param("userId")Long userId,@Param("goodsId")String goodsId);
|
}
|