update 第三方平台推送方法 由通过站点id查询配置密钥改为通过对应第三方平台类型查询

This commit is contained in:
Lemon
2024-04-19 15:22:31 +08:00
parent 646e88b057
commit 000b824398
25 changed files with 171 additions and 106 deletions

View File

@@ -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;