update 联联平台请求启动充电接口

This commit is contained in:
Lemon
2023-05-31 14:43:58 +08:00
parent 20b95f4c3c
commit d8ef3022fa
5 changed files with 74 additions and 20 deletions

View File

@@ -40,4 +40,7 @@ public class QueryStartChargeDTO {
*/
@JsonProperty(value = "PlateNum")
private String PlateNum;
@JsonProperty(value = "OperatorID")
private String OperatorID;
}

View File

@@ -1643,14 +1643,12 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
String pileSn = StringUtils.substring(pileConnectorCode, 0, 14);
String connectorCode = StringUtils.substring(pileConnectorCode, 14, 16);
String transactionCode = IdUtils.generateTransactionCode(pileSn, connectorCode);
// 通过桩号查询所属站点
PileBasicInfo pileBasicInfo = pileBasicInfoService.selectPileBasicInfoBySN(pileSn);
Long stationId = pileBasicInfo.getStationId();
// 将此订单信息存入订单表
// 订单基本信息
OrderBasicInfo orderBasicInfo = OrderBasicInfo.builder()
@@ -1665,7 +1663,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
// .logicCard(pileAuthCardInfo.getLogicCard()) // 卡号
.startMode(StartModeEnum.LIAN_LIAN.getValue())
.payStatus(Constants.ONE)
// .payAmount(totalAccountAmount) // 支付金额
.payAmount(new BigDecimal("500")) // 支付金额 2023.05.31联联平台不会传金额所以先给500默认是直到充满
.payTime(new Date())
// .payMode(PayModeEnum.PAYMENT_OF_BALANCE.getValue()) // 支付方式
.orderAmount(BigDecimal.ZERO)