package com.jeeplus.hotelorder.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jeeplus.hotelorder.order.domain.HotelOrderItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HotelOrderItemMapper extends BaseMapper<HotelOrderItem> {

    /**
     * 根据订单ID查询明细列表
     */
    List<HotelOrderItem> selectByOrderId(@Param("orderId") String orderId);

    /**
     * 批量插入订单明细
     */
    int batchInsert(@Param("list") List<HotelOrderItem> list);
}
