第三方平台站点关系表新增 启动方式字段

This commit is contained in:
Lemon
2024-03-18 09:25:01 +08:00
parent d07b0f6ac9
commit 04afd5aa53
6 changed files with 33 additions and 37 deletions

View File

@@ -104,9 +104,13 @@ public class CommonService {
* @param dto
*/
public void insertInfo2DataBase(PushStationInfoDTO dto) {
String thirdPartyType = dto.getThirdPartyType();
ThirdPartyStationRelation relation = new ThirdPartyStationRelation();
relation.setStationId(dto.getStationId());
relation.setThirdPartyType(dto.getThirdPartyType());
relation.setThirdPartyType(thirdPartyType);
if (StringUtils.equals(thirdPartyType, ThirdPlatformTypeEnum.HUA_WEI.getCode())) {
relation.setStartMode(Constants.ONE);
}
ThirdPartyStationRelationVO vo = thirdPartyStationRelationService.selectRelationInfo(relation);
if (vo != null) {
return;
@@ -202,6 +206,10 @@ public class CommonService {
String changedStatus = changeConnectorStatus(connectorStatus, realTimeMonitorData.getPutGunType());
for (ThirdPartyStationRelationVO vo : list) {
String thirdPartyType = vo.getThirdPartyType();
if (StringUtils.equals(Constants.TWO, vo.getStartMode())) {
// 如果是对接平台方启动,不需要传
continue;
}
if (StringUtils.equals(ThirdPlatformTypeEnum.LIAN_LIAN_PLATFORM.getCode(), thirdPartyType)) {
// 联联
OrderBasicInfo orderInfo = orderBasicInfoService.getOrderInfoByTransactionCode(transactionCode);
@@ -309,6 +317,10 @@ public class CommonService {
}
for (ThirdPartyStationRelationVO relationVO : relationInfoList) {
String thirdPartyType = relationVO.getThirdPartyType();
if (StringUtils.equals(Constants.TWO, relationVO.getStartMode())) {
// 如果是对接平台方启动,不需要传
continue;
}
if (StringUtils.equals(ThirdPlatformTypeEnum.LIAN_LIAN_PLATFORM.getCode(), thirdPartyType)) {
// 联联平台
// 推送停止充电结果