package com.sckw.order.api.feign;

import com.sckw.order.api.model.OrderExecutionDisplayVo;
import com.sckw.order.api.model.OrderPara;
import com.sckw.order.api.model.TradeOrderVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author xucaiqin
 * @date 2025-12-01 15:26:28
 */
@FeignClient(name = "sckw-ng-order", contextId = "TradeOrderApi")
public interface TradeOrderApi {
    /**
     * 分页查询物流订单
     *
     * @param para
     * @return
     */
    @GetMapping("/tradeOrder/trade")
    List<TradeOrderVo> trade(@SpringQueryMap OrderPara para);

    /**
     * 订单执行情况：已下单未结算订单的计划量、已装载、车次、完成率
     */
    @GetMapping("/tradeOrder/orderExecutionDisplay")
    List<OrderExecutionDisplayVo> orderExecutionDisplay();
}
