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);
|
}
|