diff --git a/epmet-gateway/src/main/java/com/epmet/auth/InternalAuthProcessor.java b/epmet-gateway/src/main/java/com/epmet/auth/InternalAuthProcessor.java
index bd7d740297..15406173b2 100644
--- a/epmet-gateway/src/main/java/com/epmet/auth/InternalAuthProcessor.java
+++ b/epmet-gateway/src/main/java/com/epmet/auth/InternalAuthProcessor.java
@@ -111,17 +111,24 @@ public class InternalAuthProcessor extends AuthProcessor {
builder.header(AppClientConstant.APP,baseTokenDto.getApp());
builder.header(AppClientConstant.CLIENT,baseTokenDto.getClient());
builder.header(AppClientConstant.USER_ID,baseTokenDto.getUserId());
- if (StringUtils.isNotBlank(baseTokenDto.getCustomerId())) {
- builder.header(AppClientConstant.CUSTOMER_ID,baseTokenDto.getCustomerId());
- }
- if (StringUtils.equalsAny(baseTokenDto.getApp(), AppClientConstant.APP_GOV, AppClientConstant.APP_RESI)) {//工作端/居民端
- if(StringUtils.isNotBlank(customerId)){
- exchange.getRequest().mutate().header(AppClientConstant.CUSTOMER_ID, customerId);
+ if(StringUtils.isNotBlank(customerId)){
+ if (StringUtils.equalsAny(baseTokenDto.getApp(), AppClientConstant.APP_GOV, AppClientConstant.APP_RESI, "public")) {//工作端/居民端
+ builder.header(AppClientConstant.CUSTOMER_ID, customerId);
}
- } else if (StringUtils.equals(baseTokenDto.getApp(), "public")) {//公众号端
- exchange.getRequest().mutate().header(AppClientConstant.CUSTOMER_ID, customerId);
}
+
+ //if (StringUtils.isNotBlank(baseTokenDto.getCustomerId())) {
+ // builder.header(AppClientConstant.CUSTOMER_ID,baseTokenDto.getCustomerId());
+ //}
+ //
+ //if (StringUtils.equalsAny(baseTokenDto.getApp(), AppClientConstant.APP_GOV, AppClientConstant.APP_RESI)) {//工作端/居民端
+ // if(StringUtils.isNotBlank(customerId)){
+ // exchange.getRequest().mutate().header(AppClientConstant.CUSTOMER_ID, customerId);
+ // }
+ //} else if (StringUtils.equals(baseTokenDto.getApp(), "public")) {//公众号端
+ // exchange.getRequest().mutate().header(AppClientConstant.CUSTOMER_ID, customerId);
+ //}
ServerHttpRequest build = exchange.getRequest().mutate().build();
return exchange.mutate().request(build).build();
}
diff --git a/epmet-module/epmet-common-service/common-service-server/src/main/resources/mapper/AreaCodeChildDao.xml b/epmet-module/epmet-common-service/common-service-server/src/main/resources/mapper/AreaCodeChildDao.xml
index 422565051c..c918bb7702 100644
--- a/epmet-module/epmet-common-service/common-service-server/src/main/resources/mapper/AreaCodeChildDao.xml
+++ b/epmet-module/epmet-common-service/common-service-server/src/main/resources/mapper/AreaCodeChildDao.xml
@@ -5,7 +5,7 @@