|
|
@@ -27,12 +27,12 @@ public class ChargingBusinessServiceImpl implements ChargingBusinessService {
|
|
|
private final ChargingUtil chargingUtil;
|
|
|
|
|
|
@Override
|
|
|
- public ChargingPricePolicyVO queryEquipBusinessPolicy(String equipBizSeq, String connectorID){
|
|
|
+ public ChargingPricePolicyVO queryEquipBusinessPolicy(String equipBizSeq, String connectorID) throws Exception {
|
|
|
Map<String, Object> queryTokenParms = new HashMap<>();
|
|
|
queryTokenParms.put("equipBizSeq", equipBizSeq);
|
|
|
queryTokenParms.put("connectorID", connectorID);
|
|
|
log.info("查询设备价格策略请求参数:{}", queryTokenParms);
|
|
|
- JsonObject jsonObject = chargingUtil.chargingRequest(ConnectivityConstants.QUERY_EQUIP_BUSINESS_POLICY, queryTokenParms, false);
|
|
|
+ JsonObject jsonObject = chargingUtil.chargingRequest(ConnectivityConstants.TEST_DOMAIN + ConnectivityConstants.QUERY_EQUIP_BUSINESS_POLICY, queryTokenParms, false);
|
|
|
log.info("查询设备价格策略返回结果:{}", jsonObject);
|
|
|
JsonObject responseDecode = chargingUtil.responseDecode(jsonObject);
|
|
|
log.info("查询设备价格策略返回结果解密后:{}", responseDecode);
|
|
|
@@ -40,12 +40,12 @@ public class ChargingBusinessServiceImpl implements ChargingBusinessService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public EquipmentAuthResponseVO queryEquipAuth(String EquipAuthSeq, String ConnectorID) {
|
|
|
+ public EquipmentAuthResponseVO queryEquipAuth(String EquipAuthSeq, String ConnectorID) throws Exception {
|
|
|
Map<String, Object> queryTokenParms = new HashMap<>();
|
|
|
queryTokenParms.put("EquipAuthSeq", EquipAuthSeq);
|
|
|
queryTokenParms.put("ConnectorID", ConnectorID);
|
|
|
log.info("查询设备认证请求参数:{}", queryTokenParms);
|
|
|
- JsonObject jsonObject = chargingUtil.chargingRequest(ConnectivityConstants.QUERY_EQUIP_AUTH, queryTokenParms, false);
|
|
|
+ JsonObject jsonObject = chargingUtil.chargingRequest(ConnectivityConstants.TEST_DOMAIN + ConnectivityConstants.QUERY_EQUIP_AUTH, queryTokenParms, false);
|
|
|
log.info("查询设备认证返回结果:{}", jsonObject);
|
|
|
JsonObject responseDecode = chargingUtil.responseDecode(jsonObject);
|
|
|
log.info("查询设备认证返回结果解密后:{}", responseDecode);
|
|
|
@@ -53,13 +53,13 @@ public class ChargingBusinessServiceImpl implements ChargingBusinessService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public QueryStationsInfoVO queryStationsInfo(String LastQueryTime, Integer PageNo, Integer PageSize) {
|
|
|
+ public QueryStationsInfoVO queryStationsInfo(String LastQueryTime, Integer PageNo, Integer PageSize) throws Exception {
|
|
|
Map<String, Object> queryParms = new HashMap<>();
|
|
|
queryParms.put("LastQueryTime", LastQueryTime);
|
|
|
queryParms.put("PageNo", PageNo);
|
|
|
queryParms.put("PageSize", PageSize);
|
|
|
log.info("查询充电站信息请求参数:{}", queryParms);
|
|
|
- JsonObject jsonObject = chargingUtil.chargingRequest(ConnectivityConstants.QUERY_STATIONS_INFO, queryParms, true);
|
|
|
+ JsonObject jsonObject = chargingUtil.chargingRequest(ConnectivityConstants.TEST_DOMAIN + ConnectivityConstants.QUERY_STATIONS_INFO, queryParms, true);
|
|
|
log.info("查询充电站信息返回结果:{}", jsonObject);
|
|
|
JsonObject responseDecode = chargingUtil.responseDecode(jsonObject);
|
|
|
log.info("查询充电站信息返回结果解密后:{}", responseDecode);
|
|
|
@@ -67,11 +67,11 @@ public class ChargingBusinessServiceImpl implements ChargingBusinessService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public QueryStationStatusVO queryStationStatus(List<String> stationIDs) {
|
|
|
+ public QueryStationStatusVO queryStationStatus(List<String> stationIDs) throws Exception {
|
|
|
Map<String, Object> queryParms = new HashMap<>();
|
|
|
queryParms.put("StationIDs", stationIDs);
|
|
|
log.info("设备接口状态查询请求参数:{}", queryParms);
|
|
|
- JsonObject jsonObject = chargingUtil.chargingRequest(ConnectivityConstants.QUERY_STATION_STATUS, queryParms, true);
|
|
|
+ JsonObject jsonObject = chargingUtil.chargingRequest(ConnectivityConstants.TEST_DOMAIN + ConnectivityConstants.QUERY_STATION_STATUS, queryParms, true);
|
|
|
log.info("设备接口状态查询返回结果:{}", jsonObject);
|
|
|
JsonObject responseDecode = chargingUtil.responseDecode(jsonObject);
|
|
|
log.info("设备接口状态查询返回结果解密后:{}", responseDecode);
|