mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-05 06:27:59 +08:00
update 推送联联平台站点信息 AreaCode只取最后一部分
This commit is contained in:
@@ -36,10 +36,10 @@ spring:
|
|||||||
druid:
|
druid:
|
||||||
# 主库数据源
|
# 主库数据源
|
||||||
master:
|
master:
|
||||||
# url: jdbc:mysql://192.168.2.2:3306/jsowell_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
url: jdbc:mysql://192.168.2.2:3306/jsowell_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||||
# username: jsowell_dev
|
username: jsowell_dev
|
||||||
url: jdbc:mysql://192.168.2.2:3306/jsowell_prd_copy?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
# url: jdbc:mysql://192.168.2.2:3306/jsowell_prd_copy?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
||||||
username: jsowell_prd_copy
|
# username: jsowell_prd_copy
|
||||||
password: 123456
|
password: 123456
|
||||||
# 从库数据源
|
# 从库数据源
|
||||||
slave:
|
slave:
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ public class LianLianServiceImpl implements LianLianService {
|
|||||||
.isAloneApply(Integer.valueOf(pileStationInfo.getAloneApply()))
|
.isAloneApply(Integer.valueOf(pileStationInfo.getAloneApply()))
|
||||||
.isPublicParkingLot(Integer.valueOf(pileStationInfo.getPublicParking()))
|
.isPublicParkingLot(Integer.valueOf(pileStationInfo.getPublicParking()))
|
||||||
.countryCode(pileStationInfo.getCountryCode())
|
.countryCode(pileStationInfo.getCountryCode())
|
||||||
.areaCode(pileStationInfo.getAreaCode())
|
// .areaCode(pileStationInfo.getAreaCode())
|
||||||
.address(pileStationInfo.getAddress())
|
.address(pileStationInfo.getAddress())
|
||||||
.serviceTel(pileStationInfo.getStationTel())
|
.serviceTel(pileStationInfo.getStationTel())
|
||||||
.stationType(Integer.valueOf(pileStationInfo.getStationType()))
|
.stationType(Integer.valueOf(pileStationInfo.getStationType()))
|
||||||
@@ -194,6 +194,12 @@ public class LianLianServiceImpl implements LianLianService {
|
|||||||
.parkingLockFlag(Integer.valueOf(pileStationInfo.getParkingLockFlag()))
|
.parkingLockFlag(Integer.valueOf(pileStationInfo.getParkingLockFlag()))
|
||||||
|
|
||||||
.build();
|
.build();
|
||||||
|
String areaCode = pileStationInfo.getAreaCode(); // 330000,330200,330213
|
||||||
|
// 根据逗号分组
|
||||||
|
String[] split = StringUtils.split(areaCode, ",");
|
||||||
|
// 只取最后一部分 330213
|
||||||
|
String subAreaCode = split[split.length - 1];
|
||||||
|
info.setAreaCode(subAreaCode);
|
||||||
if (StringUtils.equals(String.valueOf(pileStationInfo.getMerchantId()), "35")) {
|
if (StringUtils.equals(String.valueOf(pileStationInfo.getMerchantId()), "35")) {
|
||||||
// 如果是希晓运营商,则把equipmentOwnerID换成希晓
|
// 如果是希晓运营商,则把equipmentOwnerID换成希晓
|
||||||
info.setEquipmentOwnerID(Constants.OPERATORID_XI_XIAO);
|
info.setEquipmentOwnerID(Constants.OPERATORID_XI_XIAO);
|
||||||
|
|||||||
Reference in New Issue
Block a user