package com.xiaoniu.system.order.storeorder.mapper;

import com.xiaoniu.common.mybatis.mapper.BaseMapperPlus;
import com.xiaoniu.system.order.storeorder.domain.TbOrderGoods;
import com.xiaoniu.system.order.storeorder.vo.OrderDetailsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 订单和商品关联表 Mapper 接口
 * </p>
 *
 * @author haoxuyang
 * @since 2024-10-16 09:11:46
 */
@Mapper
public interface TbOrderGoodsMapper extends BaseMapperPlus<TbOrderGoodsMapper, TbOrderGoods,TbOrderGoods> {

    /**
     * 根据订单id获取商品信息
     *
     * @param orderId 订单id
     * @return OrderDetailsVO
     */
    OrderDetailsVO getGoodInfoByOrderId(@Param("orderId") Long orderId);
}
