mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update 中电联平台名称改为 宁波平台
This commit is contained in:
@@ -94,7 +94,7 @@ public class ZDLController extends BaseController {
|
||||
// 转换成相应对象
|
||||
QueryStationInfoDTO queryStationInfoDTO = JSONObject.parseObject(dataStr, QueryStationInfoDTO.class);
|
||||
queryStationInfoDTO.setOperatorId(dto.getOperatorID());
|
||||
queryStationInfoDTO.setThirdPlatformType(ThirdPlatformTypeEnum.ZHONG_DIAN_LIAN_PLATFORM.getTypeCode());
|
||||
queryStationInfoDTO.setThirdPlatformType(ThirdPlatformTypeEnum.NING_BO_PLATFORM.getTypeCode());
|
||||
Map<String, String> map = zdlService.queryStationsInfo(queryStationInfoDTO);
|
||||
logger.info("中电联平台查询充电站信息 result:{}", JSON.toJSONString(map));
|
||||
return CommonResult.success(0, "查询充电站信息成功!", map.get("Data"), map.get("Sig"));
|
||||
@@ -241,7 +241,7 @@ public class ZDLController extends BaseController {
|
||||
PushRealTimeInfoDTO pushRealTimeInfoDTO = new PushRealTimeInfoDTO();
|
||||
pushRealTimeInfoDTO.setStatus(dto.getStatus());
|
||||
pushRealTimeInfoDTO.setPileConnectorCode(dto.getPileConnectorCode());
|
||||
pushRealTimeInfoDTO.setThirdPartyType(ThirdPlatformTypeEnum.ZHONG_DIAN_LIAN_PLATFORM.getTypeCode());
|
||||
pushRealTimeInfoDTO.setThirdPartyType(ThirdPlatformTypeEnum.NING_BO_PLATFORM.getTypeCode());
|
||||
String result = zdlService.notificationStationStatus(pushRealTimeInfoDTO);
|
||||
response = new RestApiResponse<>(result);
|
||||
}catch (BusinessException e) {
|
||||
|
||||
@@ -10,7 +10,7 @@ import com.jsowell.common.util.StringUtils;
|
||||
*/
|
||||
public enum ThirdPlatformTypeEnum {
|
||||
LIAN_LIAN_PLATFORM("1", "上海联联平台", "425010765"),
|
||||
ZHONG_DIAN_LIAN_PLATFORM("2", "中电联平台", "14405899X"),
|
||||
NING_BO_PLATFORM("2", "宁波平台", "14405899X"), // (原本名称为中电联平台)
|
||||
JIANG_SU_PLATFORM("3", "江苏省平台", "726079387"),
|
||||
YONG_CHENG_BO_CHE("4", "甬城泊车平台", "330205020"),
|
||||
NING_XIA_JIAO_TOU("5", "宁夏交投", "MA771QENX"),
|
||||
|
||||
@@ -153,7 +153,7 @@ public class CommonService {
|
||||
// result = lianLianService.pushStationInfo(dto);
|
||||
result = lianLianService.pushStationInfoV2(dto);
|
||||
}
|
||||
if (StringUtils.equals(ThirdPlatformTypeEnum.ZHONG_DIAN_LIAN_PLATFORM.getTypeCode(), dto.getThirdPartyType())) {
|
||||
if (StringUtils.equals(ThirdPlatformTypeEnum.NING_BO_PLATFORM.getTypeCode(), dto.getThirdPartyType())) {
|
||||
// 中电联
|
||||
// result = zdlService.pushStationInfo(dto);
|
||||
result = zdlService.pushStationInfoV2(dto);
|
||||
@@ -250,9 +250,9 @@ public class CommonService {
|
||||
// 推送充电状态
|
||||
lianLianService.pushChargeStatus(orderInfo.getOrderCode());
|
||||
}
|
||||
if (StringUtils.equals(ThirdPlatformTypeEnum.ZHONG_DIAN_LIAN_PLATFORM.getTypeCode(), thirdPartyType)) {
|
||||
if (StringUtils.equals(ThirdPlatformTypeEnum.NING_BO_PLATFORM.getTypeCode(), thirdPartyType)) {
|
||||
// 中电联
|
||||
dto.setThirdPartyType(ThirdPlatformTypeEnum.ZHONG_DIAN_LIAN_PLATFORM.getTypeCode());
|
||||
dto.setThirdPartyType(ThirdPlatformTypeEnum.NING_BO_PLATFORM.getTypeCode());
|
||||
// log.info("推送中电联平台实时数据 pileConnectorCode:{}, connectorStatus:{}", pileConnectorCode, connectorStatus);
|
||||
zdlService.notificationStationStatus(dto);
|
||||
}
|
||||
@@ -383,7 +383,7 @@ public class CommonService {
|
||||
// 推送充电订单信息
|
||||
lianLianService.pushChargeOrderInfo(orderBasicInfo.getOrderCode());
|
||||
}
|
||||
if (StringUtils.equals(ThirdPlatformTypeEnum.ZHONG_DIAN_LIAN_PLATFORM.getTypeCode(), thirdPartyType)) {
|
||||
if (StringUtils.equals(ThirdPlatformTypeEnum.NING_BO_PLATFORM.getTypeCode(), thirdPartyType)) {
|
||||
// 中电联
|
||||
zdlService.pushChargeOrderInfo(orderBasicInfo.getOrderCode());
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ import java.util.Map;
|
||||
@Service
|
||||
public class ZhongDianLianPlatformServiceImpl implements ThirdPartyPlatformService {
|
||||
// 平台类型
|
||||
private final String thirdPlatformType = ThirdPlatformTypeEnum.ZHONG_DIAN_LIAN_PLATFORM.getTypeCode();
|
||||
private final String thirdPlatformType = ThirdPlatformTypeEnum.NING_BO_PLATFORM.getTypeCode();
|
||||
|
||||
@Autowired
|
||||
private ThirdPartyPlatformConfigService thirdPartyPlatformConfigService;
|
||||
|
||||
Reference in New Issue
Block a user