From ccb64621c9904b1be05a1b5db9621fc0b0486a52 Mon Sep 17 00:00:00 2001 From: Lemon Date: Tue, 7 May 2024 14:27:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=20=E6=A0=B9=E6=8D=AE?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E8=BD=AC=E6=8D=A2=E5=8C=BA=E5=88=92=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E5=B7=A5=E5=85=B7=E7=B1=BBjar=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsowell-pile/pom.xml | 7 +++++++ .../qinghai/service/QingHaiPlatformServiceImpl.java | 10 +++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/jsowell-pile/pom.xml b/jsowell-pile/pom.xml index c11159eca..467b72c88 100644 --- a/jsowell-pile/pom.xml +++ b/jsowell-pile/pom.xml @@ -101,6 +101,13 @@ com.huifu.adapay adapay-java-sdk + + + geo + geo-SNAPSHOT + 1.0.0 + + diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/qinghai/service/QingHaiPlatformServiceImpl.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/qinghai/service/QingHaiPlatformServiceImpl.java index ba4ae8f19..d7b1db773 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/qinghai/service/QingHaiPlatformServiceImpl.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/platform/qinghai/service/QingHaiPlatformServiceImpl.java @@ -41,6 +41,8 @@ import com.jsowell.thirdparty.platform.common.SupStationPowerInfo; import com.jsowell.thirdparty.platform.factory.ThirdPartyPlatformFactory; import com.jsowell.thirdparty.platform.util.*; import com.jsowell.thirdparty.service.ThirdpartySecretInfoService; +import com.yi.business.geo.GeoCodeInfo; +import com.yi.business.geo.TermRelationTreeCoordinate; import org.apache.commons.collections4.CollectionUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -254,7 +256,13 @@ public class QingHaiPlatformServiceImpl implements ThirdPartyPlatformService { String subAreaCode = split[split.length - 1]; stationInfo.setAreaCode(subAreaCode); - // TODO areaCodeCountryside + // areaCodeCountryside + GeoCodeInfo geoCode = TermRelationTreeCoordinate.completeGeoCode(stationInfoVO.getAddress()); + if (geoCode != null) { + System.out.println(geoCode.toString()); + String areaCodeCountryside = geoCode.getCounty_code(); + stationInfo.setAreaCodeCountryside(areaCodeCountryside); + } // 查询桩列表 List pileList = pileBasicInfoService.getPileListForZDL(String.valueOf(stationId));