From ade1f2e81f97fec699934df64eddb0e6a8f36679 Mon Sep 17 00:00:00 2001 From: Lemon Date: Tue, 30 Jul 2024 14:20:32 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=8E=A8=E9=80=81=E5=AE=81=E6=B3=A2?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E6=88=AA=E5=8F=96AreaCode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zhongdianlian/service/impl/ZDLServiceImpl.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/zhongdianlian/service/impl/ZDLServiceImpl.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/zhongdianlian/service/impl/ZDLServiceImpl.java index 7bb0b43d6..0fc840029 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/zhongdianlian/service/impl/ZDLServiceImpl.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/zhongdianlian/service/impl/ZDLServiceImpl.java @@ -233,6 +233,14 @@ public class ZDLServiceImpl implements ZDLService { .stationLat(new BigDecimal(pileStationInfo.getStationLat())) .construction(Integer.valueOf(pileStationInfo.getConstruction())) .build(); + if (StringUtils.equals(dto.getThirdPartyType(), ThirdPlatformTypeEnum.NING_BO_PLATFORM.getTypeCode())) { + String areaCode = pileStationInfo.getAreaCode(); // 330000,330200,330213 + // 根据逗号分组 + String[] split = StringUtils.split(areaCode, ","); + // 只取最后一部分 330213 + String subAreaCode = split[split.length - 1]; + info.setAreaCode(subAreaCode); + } // 截取运营商组织机构代码(去除最后一位后的最后九位) MerchantInfoVO merchantInfo = pileMerchantInfoService.getMerchantInfoVO(String.valueOf(pileStationInfo.getMerchantId())); String organizationCode = merchantInfo.getOrganizationCode();