From 7a4f9541331bef779a506b38a27ed5c3373c0bec Mon Sep 17 00:00:00 2001 From: Pu Zhibing <393733352@qq.com> Date: 星期四, 15 五月 2025 13:53:22 +0800 Subject: [PATCH] 开发二级等保功能及心跳消息队列修改 --- ruoyi-api/ruoyi-api-other/src/main/java/com/ruoyi/other/api/factory/OtherFallbackFactory.java | 61 +++++++++++++++++++++++++++--- 1 files changed, 54 insertions(+), 7 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 2466d95..d08ab1f 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,17 +1,19 @@ 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.common.core.domain.R; -import com.ruoyi.other.api.domain.TCompany; -import com.ruoyi.other.api.domain.TUserTag; -import com.ruoyi.other.api.feignClient.GoodsClient; +import com.ruoyi.other.api.domain.*; +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; import org.springframework.stereotype.Component; + +import java.util.List; +import java.util.Map; /** * 商品服务降级处理 @@ -25,8 +27,13 @@ @Override public OtherClient create(Throwable throwable) { - log.error("商品调用失败:{}", throwable.getMessage()); + 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) { @@ -42,7 +49,12 @@ public R unitDelete(Integer id) { return R.fail("删除单位失败:" + throwable.getMessage()); } - + + @Override + public R<TCompany> unitDetail(Integer id) { + return R.fail("查询单位失败:" + throwable.getMessage()); + } + @Override public R<Page<TUserTag>> queryTagPage(TagListQueryDto unitListQueryDto) { return R.fail("查询标签:" + throwable.getMessage()); @@ -57,6 +69,41 @@ public R deleteTag(Integer id) { return R.fail("查询标签:" + throwable.getMessage()); } + + @Override + public R<Map<Integer, String>> getTagMap(List<Integer> ids) { + return R.fail("查询标签map:" + throwable.getMessage()); + } + + @Override + public R<TUserTag> getByIdTag(Integer id) { + return R.fail("查询标签:" + throwable.getMessage()); + } + + @Override + public R<Map<Integer, String>> getVipMap(List<Integer> ids) { + return R.fail("获取会员map:" + throwable.getMessage()); + } + + @Override + public R<List<CouponListVOVO>> getCouponInfoByCouponIds(List<CouponListVOVO> list) { + return R.fail("我的优惠券列表获取信息:"+throwable.getMessage()); + } + + @Override + public R<TCoupon> getCouponById(Integer id) { + return R.fail("查询优惠卷:"+throwable.getMessage()); + } + + @Override + public R<List<TEnterpriseUserApplication>> getTnterPrise() { + return R.fail("查询:"+throwable.getMessage()); + } + + @Override + public R<Region> getRegionBuyCode(String code) { + return R.fail("远程调用根据code查询名称失败:"+throwable.getMessage()); + } }; } } -- Gitblit v1.7.1