新增 根据地址转换区划编码工具类jar包

This commit is contained in:
Lemon
2024-05-07 14:27:15 +08:00
parent 8e719f6bd7
commit ccb64621c9
2 changed files with 16 additions and 1 deletions

View File

@@ -101,6 +101,13 @@
<groupId>com.huifu.adapay</groupId>
<artifactId>adapay-java-sdk</artifactId>
</dependency>
<dependency>
<groupId>geo</groupId>
<artifactId>geo-SNAPSHOT</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
<properties>

View File

@@ -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<ZDLEquipmentInfo> pileList = pileBasicInfoService.getPileListForZDL(String.valueOf(stationId));