From 1cc77fe8b72d20679ccb62cc96668633bd785899 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期六, 02 十一月 2024 21:28:17 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/mx_charging_pile
---
ruoyi-api/ruoyi-api-order/src/main/java/com/ruoyi/order/api/factory/ChargingOrderFallbackFactory.java | 37 +++++++++++++++++++++++++++++++++----
1 files changed, 33 insertions(+), 4 deletions(-)
diff --git a/ruoyi-api/ruoyi-api-order/src/main/java/com/ruoyi/order/api/factory/ChargingOrderFallbackFactory.java b/ruoyi-api/ruoyi-api-order/src/main/java/com/ruoyi/order/api/factory/ChargingOrderFallbackFactory.java
index 011684c..a6ff664 100644
--- a/ruoyi-api/ruoyi-api-order/src/main/java/com/ruoyi/order/api/factory/ChargingOrderFallbackFactory.java
+++ b/ruoyi-api/ruoyi-api-order/src/main/java/com/ruoyi/order/api/factory/ChargingOrderFallbackFactory.java
@@ -9,13 +9,12 @@
import com.ruoyi.order.api.model.TSettlementConfirm;
import com.ruoyi.order.api.query.TChargingCountQuery;
import com.ruoyi.order.api.query.UploadRealTimeMonitoringDataQuery;
-import com.ruoyi.order.api.vo.ChargingBillVO;
-import com.ruoyi.order.api.vo.GetChargingOrderByLicensePlate;
-import com.ruoyi.order.api.vo.SettlementTotalVO;
+import com.ruoyi.order.api.vo.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;
+import org.springframework.web.bind.annotation.PathVariable;
import java.util.List;
@@ -33,6 +32,11 @@
public ChargingOrderClient create(Throwable throwable) {
log.error("充电订单调用失败:{}", throwable.getMessage());
return new ChargingOrderClient() {
+
+ @Override
+ public R<String> queryOrderByGunId(String id) {
+ return R.fail("远程调用根据枪id 查询最新的订单id 用户后台结束充电" + throwable.getMessage());
+ }
@Override
public R<Long> useOrderCount(Long userId) {
@@ -71,7 +75,7 @@
}
@Override
- public R<Long> getCar() {
+ public R<Long> getCar(@PathVariable("id")String id) {
return R.fail("获取用户最近使用车辆充电的车辆id:" + throwable.getMessage());
}
@@ -134,6 +138,31 @@
log.error("购物订单退款回调通知失败:" + throwable.getMessage());
}
+
+ @Override
+ public void securityDetection(SecurityDetectionVO securityDetection) {
+ log.error("修改安全检测数据失败:" + throwable.getMessage());
+ }
+
+ @Override
+ public void startChargeSuccessfully(PlatformStartChargingReplyMessageVO message) {
+ log.error("远程启动充电应答失败:" + throwable.getMessage());
+ }
+
+ @Override
+ public void terminateSuccessfulResponse(PlatformStopChargingReplyVO platformStopChargingReply) {
+ log.error("停止充电应答处理失败:" + throwable.getMessage());
+ }
+
+ @Override
+ public void endChargeBillingCharge(TransactionRecordMessageVO vo) {
+ log.error("停止充电返回账单后计算费用处理失败:" + throwable.getMessage());
+ }
+
+ @Override
+ public R<List<TChargingOrder>> getChargingOrder(TChargingOrderVo order) {
+ return R.fail("获取充电订单数据失败:" + throwable.getMessage());
+ }
};
}
}
--
Gitblit v1.7.1