package com.ruoyi.other.api.feignClient;
|
|
import com.ruoyi.common.core.constant.ServiceNameConstants;
|
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.other.api.factory.FleetOrderAggregateFallbackFactory;
|
import com.ruoyi.other.api.vo.FleetOrderAggregateVO;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
/**
|
* 车队完成订单累计聚合 Feign 客户端
|
* <p>
|
* 供车队管理(ruoyi-other)调用 ruoyi-order 内部接口,按 fleetId 汇总三类已完成订单
|
* (VIN 码 / 刷卡 / 白名单)的累计充电量、电费、服务费。
|
*/
|
@FeignClient(contextId = "FleetOrderAggregateClient", value = ServiceNameConstants.ORDER_SERVICE,
|
fallbackFactory = FleetOrderAggregateFallbackFactory.class)
|
public interface FleetOrderAggregateClient {
|
|
@GetMapping("/fleet-order-aggregate/aggregate-by-fleet")
|
R<FleetOrderAggregateVO> aggregateByFleet(@RequestParam("fleetId") Integer fleetId);
|
}
|