mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
第三方平台站点关系表新增 启动方式字段
This commit is contained in:
@@ -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)) {
|
||||
// 联联平台
|
||||
// 推送停止充电结果
|
||||
|
||||
@@ -773,6 +773,8 @@ public class HuaweiServiceV2 {
|
||||
.build();
|
||||
transactionService.doUpdateOrder(transactionDTO);
|
||||
|
||||
// TODO 订单退款
|
||||
|
||||
// 构建返回参数
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
jsonObject.put("StartChargeSeq", startChargeSeq);
|
||||
|
||||
@@ -387,8 +387,7 @@ public class LianLianServiceImpl implements LianLianService {
|
||||
String dataSecret = "E6gnWuz0QzBW75CR"; // SPBNJ1Z5EQNmpK08 VTAEKDPVN9CUS7WO huawei: zd4NrLWJ38XCTaqP E6gnWuz0QzBW75CR
|
||||
String dataSecretIV = "SXejaSUx5yud8UHm"; // peRoTcb2C7zqKeII 83UZFFRRZDYNF5CR huawei: RJJecvNTJ48SGMG7 SXejaSUx5yud8UHm
|
||||
String signSecret = "sRjCDeokckFGpYpA"; // sRjCDeokckFGpYpA
|
||||
String dataString = "GZlmSIZOVzT+Yvpc2PmvNnWXL8LvGl835nWGQwrKl7/Ao4jlvMsK7wV1VfJz7jsWIdRmgQd6ZrAQuoxD5NfGxjIDuic9McX6JyvxK/9GPYq4q+14ojuwUk1XNCK6Ae1a9cKP4b6\n" +
|
||||
"39x2Crof6/fRfnSvXR+6IUDWAl8gIVMkbHIQUkqs58C1Ik7d1OAss4eBmgeSoUddUDQ2Qj3nmCFGBmg==";
|
||||
String dataString = "o1tqVesDkPUXBNdUmE10Z7FWjAf/KFO3Iq4NWNCcFeq0h8wBcdWcZwojkdv2TNFpS0Qftv1HWDTdm+8Pjj0AIw==";
|
||||
|
||||
// 解密data
|
||||
byte[] plainText = Cryptos.aesDecrypt(Encodes.decodeBase64(dataString), dataSecret.getBytes(), dataSecretIV.getBytes());
|
||||
|
||||
Reference in New Issue
Block a user