From a146097a15d719c60af3cdeb4de1f21aa7b5ca8d Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期五, 20 九月 2024 10:47:53 +0800
Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/mx_charging_pile

---
 ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/CouponFallbackFactory.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/CouponFallbackFactory.java b/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/CouponFallbackFactory.java
index 452dadb..ba006ed 100644
--- a/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/CouponFallbackFactory.java
+++ b/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/CouponFallbackFactory.java
@@ -10,6 +10,8 @@
 import org.springframework.cloud.openfeign.FallbackFactory;
 import org.springframework.stereotype.Component;
 
+import java.util.List;
+
 /**
  * @author zhibing.pu
  * @Date 2024/8/16 13:48
@@ -28,6 +30,16 @@
 			public R<TCoupon> getCouponById1(Integer id) {
 				return R.fail("根据id获取优惠券信息失败:" + throwable.getMessage());
 			}
+
+			@Override
+			public R<List<Integer>> getCouponIdsByName(String name) {
+				return R.fail("根据名称查询优惠券ids:" + throwable.getMessage());
+			}
+			
+			@Override
+			public R updateCoupon(TCoupon coupon) {
+				throw new RuntimeException("修改优惠券失败");
+			}
 		};
 	}
 	

--
Gitblit v1.7.1