This commit is contained in:
Lemon
2024-01-17 14:13:54 +08:00
parent 63c37e71ef
commit 7f75bc4c15
8 changed files with 342 additions and 12 deletions

View File

@@ -130,7 +130,7 @@ public class HttpRequestUtil {
String hutoolRequest = HttpRequest.post(url).header("Authorization", "Bearer " + token).body(postData).execute().body();
// log.info("联联平台发送请求 接收到返回数据:{}", hutoolRequest);
log.info("发送请求 接收到返回数据:{}", hutoolRequest);
if (StringUtils.isBlank(hutoolRequest)) {
return "返回数据为空";

View File

@@ -1,9 +1,6 @@
package com.jsowell.thirdparty.xindiantu.service;
import com.jsowell.pile.dto.QueryEquipChargeStatusDTO;
import com.jsowell.pile.dto.QueryEquipmentDTO;
import com.jsowell.pile.dto.QueryStartChargeDTO;
import com.jsowell.pile.dto.QueryStationInfoDTO;
import com.jsowell.pile.dto.*;
import com.jsowell.thirdparty.lianlian.dto.CommonParamsDTO;
import com.jsowell.thirdparty.zhongdianlian.dto.ZDLGetTokenDTO;
@@ -119,4 +116,7 @@ public interface XDTService {
* @return
*/
String notificationEquipChargeStatus(String orderCode) throws UnsupportedEncodingException;
String pushStationInfo(PushStationInfoDTO dto);
}

View File

@@ -4,10 +4,7 @@ import com.jsowell.common.enums.thirdparty.ThirdPartyOperatorIdEnum;
import com.jsowell.common.enums.thirdparty.ThirdPlatformTypeEnum;
import com.jsowell.common.util.StringUtils;
import com.jsowell.pile.domain.ThirdPartyStationRelation;
import com.jsowell.pile.dto.QueryEquipChargeStatusDTO;
import com.jsowell.pile.dto.QueryEquipmentDTO;
import com.jsowell.pile.dto.QueryStartChargeDTO;
import com.jsowell.pile.dto.QueryStationInfoDTO;
import com.jsowell.pile.dto.*;
import com.jsowell.pile.service.ThirdPartyStationRelationService;
import com.jsowell.thirdparty.lianlian.dto.CommonParamsDTO;
import com.jsowell.thirdparty.xindiantu.service.XDTService;
@@ -190,4 +187,10 @@ public class XDTServiceImpl implements XDTService {
public String notificationEquipChargeStatus(String orderCode) throws UnsupportedEncodingException {
return zdlService.notificationEquipChargeStatus(orderCode);
}
@Override
public String pushStationInfo(PushStationInfoDTO dto) {
return zdlService.pushStationInfo(dto);
}
}

View File

@@ -105,7 +105,6 @@ public class ZDLServiceImpl implements ZDLService {
ThirdPartyStationRelation relation = new ThirdPartyStationRelation();
relation.setStationId(dto.getStationId());
ThirdPartyStationRelationVO relationInfo = thirdPartyStationRelationService.selectRelationInfo(relation);
// ThirdPartySettingInfo settingInfo = thirdPartySettingInfoService.getInfoByStationId(dto.getStationId());
if (relationInfo == null) {
// 新增
relation.setThirdPartyType(dto.getThirdPartyType());