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