package com.gree.mall.manager.commonmapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gree.mall.manager.bean.order.OrderDetailListBean;
import com.gree.mall.manager.plus.entity.OrderInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper {

    /*通过查询信息查询下载的报表信息*/
    List<OrderDetailListBean> selectByQueryMsg(
            @Param("userId") String userId,  @Param("orderId")String orderId,  @Param("productName")String productName,  @Param("userName")String userName,
            @Param("phone")String phone,  @Param("exchangeCode")String exchangeCode,  @Param("orderStatus")String orderStatus,
            @Param("startCreateTime")String startCreateTime,  @Param("endCreateTime")String endCreateTime,
            @Param("startPayTime")String startPayTime,  @Param("endPayTime")String endPayTime,  @Param("promotionGroupUserName")String promotionGroupUserName,
            @Param("promotionGroupId")String promotionGroupId,@Param("promotionGroupUserId") String promotionGroupUserId,
            @Param("websitId") String websitId,
            @Param("goodsId") String goodsId,
            @Param("companyIds") List<String> companyIds,@Param("websitIds") List<String> websitIds
    );

    //查询派工异常订单
    IPage<OrderInfo> abnormalDispatchOrder(IPage<OrderInfo> page, @Param("userId") String userId, @Param("orderId")String orderId, @Param("productName")String productName,
                                           @Param("userName")String userName, @Param("phone")String phone, @Param("exchangeCode")String exchangeCode,
                                           @Param("orderStatus")String orderStatus, @Param("startCreateTime")String startCreateTime,
                                           @Param("endCreateTime")String endCreateTime, @Param("startPayTime")String startPayTime,
                                           @Param("endPayTime")String endPayTime, @Param("websitId")String websitId,
                                           @Param("isNegative")String isNegative, @Param("abnormalDispatch")String abnormalDispatch,
                                           @Param("companyIds") List<String> companyIds,@Param("websitIds") List<String> websitIds);
}
