From e454b3135740e5d1db367f0e1420e53de2a735a1 Mon Sep 17 00:00:00 2001
From: huliguo <2023611923@qq.com>
Date: 星期五, 23 五月 2025 21:04:27 +0800
Subject: [PATCH] 大屏

---
 ruoyi-api/ruoyi-api-chargingPile/src/main/java/com/ruoyi/chargingPile/api/factory/ChargingGunFallbackFactory.java |   29 +++++++++++++++++++++++++++--
 1 files changed, 27 insertions(+), 2 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 ed56bfc..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;
 
@@ -32,12 +33,12 @@
 
             @Override
             public R<List<TChargingGun>> getAllGun() {
-                return null;
+                return R.fail("获取数据失败:" + throwable.getMessage());
             }
 
             @Override
             public R<List<TChargingPile>> getAllPile() {
-                return null;
+                return R.fail("获取所有桩失败:" + throwable.getMessage());
             }
 
             @Override
@@ -64,6 +65,30 @@
             public R<String> updateChargingGunById(TChargingGun chargingGun) {
                 return R.fail("编辑充电枪失败:" + throwable.getMessage());
             }
+    
+            @Override
+            public R<List<TChargingGun>> getChargingGunByChargingPileId(Integer chargingPileId) {
+                return R.fail("根据充电桩id获取枪失败:" + throwable.getMessage());
+            }
+    
+            @Override
+            public R<List<TChargingGun>> getChargingGunByChargingPileIds(List<Integer> chargingPileIds) {
+                return R.fail("根据充电桩ids获取枪失败:" + throwable.getMessage());
+            }
+    
+            @Override
+            public R pushChargingGunStatus(Integer id, Integer status) {
+                return R.fail("接口状态变化后推送给第三方失败:" + throwable.getMessage());
+            }
+
+            @Override
+            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