mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-26 18:18:01 +08:00
新增 根据地址转换区划编码工具类jar包
This commit is contained in:
@@ -101,6 +101,13 @@
|
|||||||
<groupId>com.huifu.adapay</groupId>
|
<groupId>com.huifu.adapay</groupId>
|
||||||
<artifactId>adapay-java-sdk</artifactId>
|
<artifactId>adapay-java-sdk</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>geo</groupId>
|
||||||
|
<artifactId>geo-SNAPSHOT</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|||||||
@@ -41,6 +41,8 @@ import com.jsowell.thirdparty.platform.common.SupStationPowerInfo;
|
|||||||
import com.jsowell.thirdparty.platform.factory.ThirdPartyPlatformFactory;
|
import com.jsowell.thirdparty.platform.factory.ThirdPartyPlatformFactory;
|
||||||
import com.jsowell.thirdparty.platform.util.*;
|
import com.jsowell.thirdparty.platform.util.*;
|
||||||
import com.jsowell.thirdparty.service.ThirdpartySecretInfoService;
|
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.apache.commons.collections4.CollectionUtils;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
@@ -254,7 +256,13 @@ public class QingHaiPlatformServiceImpl implements ThirdPartyPlatformService {
|
|||||||
String subAreaCode = split[split.length - 1];
|
String subAreaCode = split[split.length - 1];
|
||||||
stationInfo.setAreaCode(subAreaCode);
|
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));
|
List<ZDLEquipmentInfo> pileList = pileBasicInfoService.getPileListForZDL(String.valueOf(stationId));
|
||||||
|
|||||||
Reference in New Issue
Block a user