mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
新增 华为Vin启动充电
This commit is contained in:
@@ -88,4 +88,9 @@ public class GenerateOrderDTO extends BasicPileDTO{
|
||||
* 微信小程序appId
|
||||
*/
|
||||
private String appId;
|
||||
|
||||
/**
|
||||
* 启动时soc
|
||||
*/
|
||||
private String startSoc;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user