puzhibing
2023-10-08 22199bbdda579861736420fe26c2873ab0f5d21c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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);
}