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));