mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 19:45:09 +08:00
update 第三方平台推送方法 由通过站点id查询配置密钥改为通过对应第三方平台类型查询
This commit is contained in:
@@ -515,6 +515,7 @@ public class NRServiceImpl implements NRService {
|
||||
String pileConnectorCode = realTimeMonitorData.getPileSn() + realTimeMonitorData.getConnectorCode();
|
||||
String connectorStatus = realTimeMonitorData.getConnectorStatus();
|
||||
String transactionCode = realTimeMonitorData.getTransactionCode();
|
||||
String thirdPartyType = realTimeMonitorData.getThirdPartyType();
|
||||
|
||||
// 查出该桩所属哪个站点
|
||||
String pileSn = StringUtils.substring(pileConnectorCode, 0, 14);
|
||||
@@ -522,6 +523,7 @@ public class NRServiceImpl implements NRService {
|
||||
// 通过站点id查询相关配置信息
|
||||
ThirdPartyStationRelation relation = new ThirdPartyStationRelation();
|
||||
relation.setStationId(Long.parseLong(stationVO.getId()));
|
||||
relation.setThirdPartyType(thirdPartyType);
|
||||
ThirdPartyStationRelationVO relationInfo = thirdPartyStationRelationService.selectRelationInfo(relation);
|
||||
if (relationInfo == null) {
|
||||
return null;
|
||||
@@ -673,9 +675,9 @@ public class NRServiceImpl implements NRService {
|
||||
NROrderInfoVO nrOrderInfoVO = orderBasicInfoService.getNROrderInfoByOrderCode(orderCode);
|
||||
NROrderInfo nrOrderInfo = formatNROrderInfo((nrOrderInfoVO));
|
||||
|
||||
// 通过站点id查询相关配置信息
|
||||
// 通过三方平台类型查询相关配置信息
|
||||
ThirdPartyStationRelation relation = new ThirdPartyStationRelation();
|
||||
relation.setStationId(Long.parseLong(nrOrderInfoVO.getStationId()));
|
||||
relation.setThirdPartyType(nrOrderInfo.getThirdPartyType());
|
||||
ThirdPartyStationRelationVO relationInfo = thirdPartyStationRelationService.selectRelationInfo(relation);
|
||||
if (relationInfo == null) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user