package com.zm.order.tool.server.routing;

import com.zm.order.tool.server.model.TempOrderItem;
import com.zm.order.tool.server.query.OrderItemQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author penghui
 */
@Repository
public interface RoutingOrderItemDao {

    /**
     * 查询
     *
     * @param orderNo 订单号
     * @param userId  用户id
     * @return
     */
    List<TempOrderItem> selectByOrderNo(@Param("orderNo") String orderNo,
                                        @Param("userId") Long userId);

    /**
     * 查询
     *
     * @param orderItemQuery 查询参数
     * @return
     */
    List<TempOrderItem> selectList(OrderItemQuery orderItemQuery);

    /**
     * 查询列表
     *
     * @param idList
     * @param userId
     * @return
     */
    List<TempOrderItem> selectByIdList(@Param("idList") List<Long> idList,
                                       @Param("userId") Long userId);

    List<TempOrderItem> selectByOrderNoList(List<String> list);

}