package com.njzscloud.dispose.cst.order.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.njzscloud.dispose.cst.order.pojo.entity.OrderEntity;
import com.njzscloud.dispose.cst.order.pojo.result.OrderPaymentRecordResult;
import com.njzscloud.dispose.cst.order.pojo.result.OrderResult;
import com.njzscloud.dispose.cst.order.pojo.result.SearchOrderResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 收/销订单
 * @author ljw
 */
@Mapper
public interface OrderMapper extends BaseMapper<OrderEntity> {
    IPage<SearchOrderResult> paging(IPage<SearchOrderResult> page, @Param("ew") QueryWrapper<Object> ew);

    SearchOrderResult detail(@Param("id") Long id);

    OrderResult miniDetail(@Param("id") Long id);

    List<OrderPaymentRecordResult> getPaymentRecordByOrderId(@Param("orderId") Long orderId);

}


