新增 华为Vin启动充电

This commit is contained in:
Lemon
2024-01-15 13:49:19 +08:00
parent 65465b7c7c
commit fffbe85efd
5 changed files with 131 additions and 6 deletions

View File

@@ -88,4 +88,9 @@ public class GenerateOrderDTO extends BasicPileDTO{
* 微信小程序appId
*/
private String appId;
/**
* 启动时soc
*/
private String startSoc;
}

View File

@@ -0,0 +1,26 @@
package com.jsowell.pile.dto.huawei;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.math.BigDecimal;
/**
* Vin 启动充电DTO
*
* @author Lemon
* @Date 2024/1/15 8:46:28
*/
@Data
public class VinStartChargeDTO {
@JsonProperty(value = "ConnectorID")
private String connectorID;
@JsonProperty(value = "Vin")
private String vin;
@JsonProperty(value = "Soc")
private BigDecimal soc;
private String operatorId;
}

View File

@@ -3460,6 +3460,9 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
orderBasicInfo.setPlateNumber(memberPlateNumberRelation.getLicensePlateNumber());
}
}
if (StringUtils.isNotBlank(dto.getStartSoc())) {
orderBasicInfo.setStartSoc(dto.getStartSoc());
}
}
if (StringUtils.equals(dto.getStartType(), StartTypeEnum.APPOINTMENT.getValue())) {