package com.ruoyi.mall.mapper;

import java.util.List;
import com.ruoyi.mall.domain.MallOrderGoods;
import com.ruoyi.mall.domain.vo.MallOrderGoodsVO;

/**
 * 订单商品Mapper接口
 * 
 * @author chang
 * @date 2021-11-25
 */
public interface MallOrderGoodsMapper 
{
    /**
     * 查询订单商品
     * 
     * @param id 订单商品主键
     * @return 订单商品
     */
    public MallOrderGoods selectMallOrderGoodsById(Long id);

    /**
     * 查询订单商品列表
     * 
     * @param mallOrderGoods 订单商品
     * @return 订单商品集合
     */
    public List<MallOrderGoods> selectMallOrderGoodsList(MallOrderGoods mallOrderGoods);

    /**
     * 新增订单商品
     * 
     * @param mallOrderGoods 订单商品
     * @return 结果
     */
    public int insertMallOrderGoods(MallOrderGoods mallOrderGoods);

    /**
     * 修改订单商品
     * 
     * @param mallOrderGoods 订单商品
     * @return 结果
     */
    public int updateMallOrderGoods(MallOrderGoods mallOrderGoods);

    /**
     * 删除订单商品
     * 
     * @param id 订单商品主键
     * @return 结果
     */
    public int deleteMallOrderGoodsById(Long id);

    /**
     * 批量删除订单商品
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteMallOrderGoodsByIds(Long[] ids);

    public List<MallOrderGoodsVO> selectMallOrderGoodsByOrderId(Long id);
}
