From a41e23347029bf69a3f59438749658252de81d2e Mon Sep 17 00:00:00 2001 From: luodangjia <luodangjia> Date: 星期二, 15 十月 2024 09:41:30 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/OtherFallbackFactory.java | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/OtherFallbackFactory.java b/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/OtherFallbackFactory.java index 0070fdc..a1e3ea3 100644 --- a/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/OtherFallbackFactory.java +++ b/ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/OtherFallbackFactory.java @@ -1,14 +1,15 @@ package com.ruoyi.other.api.factory; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.ruoyi.account.api.dto.TagListQueryDto; -import com.ruoyi.account.api.dto.UnitListQueryDto; -import com.ruoyi.account.api.vo.CouponListVOVO; import com.ruoyi.common.core.domain.R; import com.ruoyi.other.api.domain.TCompany; import com.ruoyi.other.api.domain.TCoupon; +import com.ruoyi.other.api.domain.TEnterpriseUserApplication; import com.ruoyi.other.api.domain.TUserTag; +import com.ruoyi.other.api.dto.TagListQueryDto; +import com.ruoyi.other.api.dto.UnitListQueryDto; import com.ruoyi.other.api.feignClient.OtherClient; +import com.ruoyi.other.api.vo.CouponListVOVO; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.cloud.openfeign.FallbackFactory; @@ -31,6 +32,11 @@ public OtherClient create(Throwable throwable) { log.error("单位用失败:{}", throwable.getMessage()); return new OtherClient() { + + @Override + public R<Integer> getAddCarIntegral() { + return R.fail("查询首次添加车辆可获积分:" + throwable.getMessage()); + } @Override public R<Page<TCompany>> queryUnitPage(UnitListQueryDto unitListQueryDto) { @@ -91,6 +97,11 @@ public R<TCoupon> getCouponById(Integer id) { return R.fail("查询优惠卷:"+throwable.getMessage()); } + + @Override + public R<List<TEnterpriseUserApplication>> getTnterPrise() { + return R.fail("查询:"+throwable.getMessage()); + } }; } } -- Gitblit v1.7.1