New file |
| | |
| | | package com.ruoyi.order.api.feignClient; |
| | | |
| | | import com.ruoyi.common.core.constant.ServiceNameConstants; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.order.api.factory.ChargingOrderAccountingStrategyFallbackFactory; |
| | | import com.ruoyi.order.api.factory.ChargingOrderFallbackFactory; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | | * @Date 2024/8/14 19:09 |
| | | */ |
| | | @FeignClient(contextId = "ChargingOrderAccountingStrategyClient", value = ServiceNameConstants.ORDER_SERVICE, fallbackFactory = ChargingOrderAccountingStrategyFallbackFactory.class) |
| | | public interface ChargingOrderAccountingStrategyClient { |
| | | |
| | | |
| | | /** |
| | | * 获取给定天数每天的充电量统计数据 |
| | | * @param days 天数 |
| | | * @return |
| | | */ |
| | | @GetMapping("/t-charging-order-accounting-strategy/getTotalElectricQuantity") |
| | | R<List<List<Map<String, Object>>>> getTotalElectricQuantity(Integer days, @RequestParam("siteIds") Set<Integer> siteIds); |
| | | |
| | | |
| | | /** |
| | | * 获取给定天数每天的充电度数 |
| | | * @param days |
| | | * @return |
| | | */ |
| | | @GetMapping("/t-charging-order-getDailyChargingDegree-strategy/getUtilizationTrend") |
| | | R<List<Double>> getDailyChargingDegree(Integer days, @RequestParam("siteIds") Set<Integer> siteIds); |
| | | } |