package com.pine.admin.modules.business.service;

import com.pine.admin.modules.base.binder.BaseService;
import com.pine.admin.modules.business.entity.CarOrder;
import com.pine.common.dto.Page;

import java.math.BigDecimal;
import java.util.List;

/**
 * 选配车订单表
 *
 * @author Pine
 * @email 771190883@qq.com
 * @date 2019-07-22 21:11:49
 */
public interface CarOrderService extends BaseService<CarOrder> {

    /**
     * 线下审核
     * @param carOrder
     * @return
     */
    boolean offlineReview (Long id, String loanStatus, BigDecimal downPaymentRate);

    /**
     * 支付,没有支付没有数据代表未支付
     */
    boolean pay(Long id,String invoicePath);

    /**
     * 交车
     */
    boolean delivery(Long id,String invoicePath);

    /**
     * 查询退款
     */
    String refund(String orderId,String customerId);

    /**
     * 查询退订订单
     */
    List<CarOrder>  getBackByPage(Page page,CarOrder  record);
}

