From b0a480d79122ce69ae36dae299195c818b51d5bd Mon Sep 17 00:00:00 2001 From: jianjun Date: Thu, 17 Mar 2022 15:03:12 +0800 Subject: [PATCH] fallback --- .../feign/fallback/CommonGovOrgFeignClientFallBackFactory.java | 2 +- ...ClientFallback.java => CommonGovOrgFeignClientFallback.java} | 2 +- .../java/com/epmet/service/impl/CustomerGridServiceImpl.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/feign/fallback/{CommonOrgFeignClientFallback.java => CommonGovOrgFeignClientFallback.java} (90%) diff --git a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/feign/fallback/CommonGovOrgFeignClientFallBackFactory.java b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/feign/fallback/CommonGovOrgFeignClientFallBackFactory.java index 219d8f38cd..8cde59e6e1 100644 --- a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/feign/fallback/CommonGovOrgFeignClientFallBackFactory.java +++ b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/feign/fallback/CommonGovOrgFeignClientFallBackFactory.java @@ -14,7 +14,7 @@ import org.springframework.stereotype.Component; @Slf4j @Component public class CommonGovOrgFeignClientFallBackFactory implements FallbackFactory { - private CommonOrgFeignClientFallback fallback = new CommonOrgFeignClientFallback(); + private CommonGovOrgFeignClientFallback fallback = new CommonGovOrgFeignClientFallback(); @Override public CommonGovOrgFeignClient create(Throwable cause) { log.error(String.format("FeignClient调用发生异常,异常信息:%s", ExceptionUtils.getThrowableErrorStackTrace(cause))); diff --git a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/feign/fallback/CommonOrgFeignClientFallback.java b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/feign/fallback/CommonGovOrgFeignClientFallback.java similarity index 90% rename from epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/feign/fallback/CommonOrgFeignClientFallback.java rename to epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/feign/fallback/CommonGovOrgFeignClientFallback.java index c7308d15ab..c54567c350 100644 --- a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/feign/fallback/CommonOrgFeignClientFallback.java +++ b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/feign/fallback/CommonGovOrgFeignClientFallback.java @@ -15,7 +15,7 @@ import org.springframework.stereotype.Component; * @Date 2020/4/24 11:17 **/ @Component -public class CommonOrgFeignClientFallback implements CommonGovOrgFeignClient { +public class CommonGovOrgFeignClientFallback implements CommonGovOrgFeignClient { @Override public Result getGridInfo(CustomerGridFormDTO customerGridFormDTO) { diff --git a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerGridServiceImpl.java b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerGridServiceImpl.java index bd30ca06ac..094df4ba53 100644 --- a/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerGridServiceImpl.java +++ b/epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerGridServiceImpl.java @@ -1047,7 +1047,7 @@ public class CustomerGridServiceImpl extends BaseServiceImpl updateGrid=new LambdaUpdateWrapper<>(); - updateGrid.set(CustomerGridEntity::getAbandonFlag,NumConstant.ZERO); + updateGrid.set(CustomerGridEntity::getAbandonFlag,NumConstant.ONE); updateGrid.eq(CustomerGridEntity::getId,gridId); baseDao.update(null,updateGrid); }