zhaowenxuan
7 天以前 0892d843cd394f383ff50f480f7f22f2ec3829bc
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package com.ltkj.mall.mapper;
 
import java.util.List;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ltkj.mall.domain.MallCart;
import org.apache.ibatis.annotations.Mapper;
 
/**
 * 购物车商品Mapper接口
 *
 * @author ltkj_赵佳豪&李格
 * @date 2023-07-12
 */
@Mapper
public interface MallCartMapper extends BaseMapper<MallCart> {
    /**
     * 查询购物车商品
     *
     * @param id 购物车商品主键
     * @return 购物车商品
     */
    public MallCart selectMallCartById(Long id);
 
    /**
     * 查询购物车商品列表
     *
     * @param mallCart 购物车商品
     * @return 购物车商品集合
     */
    public List<MallCart> selectMallCartList(MallCart mallCart);
 
    /**
     * 新增购物车商品
     *
     * @param mallCart 购物车商品
     * @return 结果
     */
    public int insertMallCart(MallCart mallCart);
 
    /**
     * 修改购物车商品
     *
     * @param mallCart 购物车商品
     * @return 结果
     */
    public int updateMallCart(MallCart mallCart);
 
    /**
     * 删除购物车商品
     *
     * @param id 购物车商品主键
     * @return 结果
     */
    public int deleteMallCartById(Long id);
 
    /**
     * 批量删除购物车商品
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMallCartByIds(Long[] ids);
}