From 67d06a785d5fc4524639ace27651c01ff05a4b58 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期四, 29 五月 2025 22:31:33 +0800
Subject: [PATCH] 修改bug

---
 ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/factory/ChargingGunFallbackFactory.java |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/factory/ChargingGunFallbackFactory.java b/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/factory/ChargingGunFallbackFactory.java
index 81b2753..7da496b 100644
--- a/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/factory/ChargingGunFallbackFactory.java
+++ b/ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/factory/ChargingGunFallbackFactory.java
@@ -12,6 +12,7 @@
 import org.slf4j.LoggerFactory;
 import org.springframework.cloud.openfeign.FallbackFactory;
 import org.springframework.stereotype.Component;
+import org.springframework.web.bind.annotation.RequestParam;
 
 import java.util.List;
 
@@ -29,7 +30,17 @@
     public ChargingGunClient create(Throwable throwable) {
         log.error("充电枪调用失败:{}", throwable.getMessage());
         return new ChargingGunClient() {
-    
+
+            @Override
+            public R<List<TChargingGun>> getAllGun() {
+                return R.fail("获取数据失败:" + throwable.getMessage());
+            }
+
+            @Override
+            public R<List<TChargingPile>> getAllPile() {
+                return R.fail("获取所有桩失败:" + throwable.getMessage());
+            }
+
             @Override
             public R<String> getAllName(Integer id) {
                 return R.fail("根据id获取充电枪完整名称失败:" + throwable.getMessage());
@@ -74,6 +85,11 @@
             public R<TChargingGun> getChargingGunByFullNumber(String fullNumber) {
                 return R.fail("根据枪唯一码查询信息失败:" + throwable.getMessage());
             }
+            @Override
+            public R<List<Integer>> getGunIdsBySiteIdsAndChargeModels(List<Integer> siteIds, List<Integer> chargeModels){
+                return R.fail("根据站点ids和充电模式集合查询充电枪集合失败:" + throwable.getMessage());
+            }
+
         };
     }
 }

--
Gitblit v1.7.1