package com.cf.imes.module.executor.dal.mysql.orderItem;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cf.imes.module.executor.dal.dataobject.orderItem.OrderItemTempDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 订单明细临时表 order_item_temp Mapper
 *
 * @author Gqr
 * @since 2026/4/10 11:46
 */
@Mapper
public interface OrderItemTempMapper extends BaseMapper<OrderItemTempDO> {
    /**
     * 查询临时表所需数据
     *
     * @param orderId
     * @param organId
     * @param bodyIds
     * @param componentIds
     * @return
     */
    List<OrderItemTempDO> selectOrderItemTempForItem(@Param("orderId") Long orderId,
                                             @Param("organId") Long organId,
                                             @Param("lastId") Long lastId,
                                             @Param("pageSize") int pageSize,
                                             @Param("bodyIds") Set<Long> bodyIds,
                                             @Param("compIds") Set<Long> componentIds);
}
