From aa2c3d4deba76ade0958ff3ced88396e226a4964 Mon Sep 17 00:00:00 2001
From: duhuizhe <271000472@qq.com>
Date: 星期三, 15 五月 2024 19:57:40 +0800
Subject: [PATCH] 项目启动失败问题解决

---
 ecosphere/ecosphere-four-payment/src/main/java/com/nuvole/four/client/ShopClientFallbackFactory.java |  123 ++++++++++++++++++++--------------------
 1 files changed, 61 insertions(+), 62 deletions(-)

diff --git a/ecosphere/ecosphere-four-payment/src/main/java/com/nuvole/four/client/ShopClientFallbackFactory.java b/ecosphere/ecosphere-four-payment/src/main/java/com/nuvole/four/client/ShopClientFallbackFactory.java
index 4539b59..eb68d08 100644
--- a/ecosphere/ecosphere-four-payment/src/main/java/com/nuvole/four/client/ShopClientFallbackFactory.java
+++ b/ecosphere/ecosphere-four-payment/src/main/java/com/nuvole/four/client/ShopClientFallbackFactory.java
@@ -1,62 +1,61 @@
-package com.nuvole.four.client;
-
-import com.nuvole.common.domain.emnu.CommonResultEmnu;
-import com.nuvole.common.domain.result.CommonResult;
-import com.nuvole.common.domain.result.PageBean;
-import feign.hystrix.FallbackFactory;
-import lombok.extern.slf4j.Slf4j;
-import org.springframework.stereotype.Component;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.RequestParam;
-
-import java.util.Date;
-import java.util.List;
-import java.util.Map;
-
-
-@Component
-@Slf4j
-public class ShopClientFallbackFactory implements FallbackFactory<ShopServiceClient> {
-
-    @Override
-    public ShopServiceClient create(Throwable throwable) {
-        log.error("fallback reason:{}", throwable.getMessage());
-        return new ShopServiceClient() {
-
-            @GetMapping(value = "/v1/shop/pc/storeMerchantShop/getMerchantShopExtendList", consumes = "application/json")
-            @Override
-            public CommonResult<PageBean<Map>> getMerchantShopExtendList(String queryOrgCode, String merchantId, String shopName,
-                                                                         String managerName, String channelId,String channelIdNotNull,
-                                                                         Integer pageNumber, Integer pageSize) {
-                return new CommonResult(CommonResultEmnu.SERVER_ERR);
-            }
-
-            @Override
-            public List<Map> selectShopMsgByIds(String ids) {
-                return null;
-            }
-
-            /**
-             * 鍟嗘埛娲诲姩鏁版嵁缁熻-鍒楄〃
-             * @param orgCode       鏈烘瀯code
-             * @param channelId     閫氶亾id
-             * @param activityId    娲诲姩id
-             * @param startDate     浜ゆ槗寮�濮嬫椂闂�
-             * @param endDate       浜ゆ槗缁撴潫鏃堕棿
-             * @param pageNumber    椤电爜
-             * @param pageSize      姣忛〉鏉℃暟
-             * @return  鍟嗘埛娲诲姩鏁版嵁缁熻-鍒楄〃
-             */
-            @Override
-            public CommonResult<PageBean<Map>> merchantActivityList(String orgCode, Long channelId, Long activityId, Date startDate,Date endDate, Integer pageNumber, Integer pageSize) {
-                return new CommonResult(CommonResultEmnu.SERVER_ERR);
-            }
-
-            @Override
-            public CommonResult<Map> merchantActivityCollect(String orgCode, Long channelId, Long activityId, Date startDate,Date endDate) {
-                return new CommonResult(CommonResultEmnu.SERVER_ERR);
-            }
-
-        };
-    }
-}
+//package com.nuvole.four.client;
+//
+//import com.nuvole.common.domain.emnu.CommonResultEmnu;
+//import com.nuvole.common.domain.result.CommonResult;
+//import com.nuvole.common.domain.result.PageBean;
+//
+//import lombok.extern.slf4j.Slf4j;
+//import org.springframework.stereotype.Component;
+//import org.springframework.web.bind.annotation.GetMapping;
+//
+//import java.util.Date;
+//import java.util.List;
+//import java.util.Map;
+//
+//
+//@Component
+//@Slf4j
+//public class ShopClientFallbackFactory implements FallbackFactory<ShopServiceClient> {
+//
+//    @Override
+//    public ShopServiceClient create(Throwable throwable) {
+//        log.error("fallback reason:{}", throwable.getMessage());
+//        return new ShopServiceClient() {
+//
+//            @GetMapping(value = "/v1/shop/pc/storeMerchantShop/getMerchantShopExtendList", consumes = "application/json")
+//            @Override
+//            public CommonResult<PageBean<Map>> getMerchantShopExtendList(String queryOrgCode, String merchantId, String shopName,
+//                                                                         String managerName, String channelId,String channelIdNotNull,
+//                                                                         Integer pageNumber, Integer pageSize) {
+//                return new CommonResult(CommonResultEmnu.SERVER_ERR);
+//            }
+//
+//            @Override
+//            public List<Map> selectShopMsgByIds(String ids) {
+//                return null;
+//            }
+//
+//            /**
+//             * 鍟嗘埛娲诲姩鏁版嵁缁熻-鍒楄〃
+//             * @param orgCode       鏈烘瀯code
+//             * @param channelId     閫氶亾id
+//             * @param activityId    娲诲姩id
+//             * @param startDate     浜ゆ槗寮�濮嬫椂闂�
+//             * @param endDate       浜ゆ槗缁撴潫鏃堕棿
+//             * @param pageNumber    椤电爜
+//             * @param pageSize      姣忛〉鏉℃暟
+//             * @return  鍟嗘埛娲诲姩鏁版嵁缁熻-鍒楄〃
+//             */
+//            @Override
+//            public CommonResult<PageBean<Map>> merchantActivityList(String orgCode, Long channelId, Long activityId, Date startDate,Date endDate, Integer pageNumber, Integer pageSize) {
+//                return new CommonResult(CommonResultEmnu.SERVER_ERR);
+//            }
+//
+//            @Override
+//            public CommonResult<Map> merchantActivityCollect(String orgCode, Long channelId, Long activityId, Date startDate,Date endDate) {
+//                return new CommonResult(CommonResultEmnu.SERVER_ERR);
+//            }
+//
+//        };
+//    }
+//}

--
Gitblit v1.9.1