package com.njzscloud.supervisory.order.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njzscloud.supervisory.order.pojo.entity.OrderInfoEntity;
import com.njzscloud.supervisory.order.pojo.result.ObtainWeighBillResult;
import com.njzscloud.supervisory.order.pojo.result.OrderPagingResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 订单信息
 */
@Mapper
public interface OrderInfoMapper extends BaseMapper<OrderInfoEntity> {

    Page<OrderPagingResult> paging(Page<OrderPagingResult> page, @Param("ew") QueryWrapper<OrderPagingResult> ew);

    OrderPagingResult detail(@Param("ew") QueryWrapper<OrderPagingResult> ew);

    OrderPagingResult pendingOrder(@Param("ew") QueryWrapper<Object> ew);

    ObtainWeighBillResult obtainWeighBill(@Param("orderId") Long orderId);
}
