package com.sinata.rest.modular.mall.dao;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.sinata.rest.modular.mall.controller.vo.VoGoodsCart;
|
import com.sinata.rest.modular.mall.model.MallGoodsCart;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* <p>
|
* 商品购物车 Mapper 接口
|
* </p>
|
*
|
* @author goku
|
* @since 2023-03-10
|
*/
|
public interface MallGoodsCartMapper extends BaseMapper<MallGoodsCart> {
|
|
List<VoGoodsCart> getGoodsCarByUserIdList(@Param("userId") Integer userId);
|
|
/**
|
* <p>
|
* 获取用户购物车数量
|
* </p>
|
* @author sl
|
* @Description 获取用户购物车数量
|
* @date 2023/3/27 10:41
|
* @param [userId]
|
* @return java.lang.Integer
|
*/
|
Integer getGoodsCarNum(@Param("userId") Integer userId);
|
}
|