mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-24 04:55:08 +08:00
update 预约充电
This commit is contained in:
@@ -47,6 +47,11 @@ public class PileReservationInfo {
|
||||
*/
|
||||
private String reservationType;
|
||||
|
||||
/**
|
||||
* 验证身份(1-是; 0-否)
|
||||
*/
|
||||
private String verifyIdentity;
|
||||
|
||||
/**
|
||||
* 预约开始时间
|
||||
*/
|
||||
|
||||
@@ -46,6 +46,11 @@ public class ReservationChargingCommand {
|
||||
*/
|
||||
private String reservationType;
|
||||
|
||||
/**
|
||||
* 身份验证
|
||||
*/
|
||||
private String verifyIdentity;
|
||||
|
||||
/**
|
||||
* vin1
|
||||
*/
|
||||
|
||||
@@ -40,6 +40,11 @@ public class CreateReservedDTO {
|
||||
*/
|
||||
private String freq;
|
||||
|
||||
/**
|
||||
* 验证身份(1-是; 0-否)
|
||||
*/
|
||||
private String verifyIdentity;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this, ToStringStyle.JSON_STYLE)
|
||||
|
||||
@@ -23,6 +23,11 @@ public class PileReservationDTO {
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 验证身份(1-是; 0-否)
|
||||
*/
|
||||
private String verifyIdentity;
|
||||
|
||||
/**
|
||||
* 桩编号
|
||||
*/
|
||||
|
||||
@@ -176,6 +176,7 @@ public class PileReservationInfoServiceImpl implements PileReservationInfoServic
|
||||
.connectorCode(pileReservationInfo.getPileConnectorCode().replace(pileReservationInfo.getPileSn(), ""))
|
||||
.operation("01")
|
||||
.reservationType(type)
|
||||
.verifyIdentity(dto.getVerifyIdentity())
|
||||
.vin1(vinCodes.get(0))
|
||||
.vin2(vinCodes.get(1))
|
||||
.vin3(vinCodes.get(2))
|
||||
@@ -226,6 +227,7 @@ public class PileReservationInfoServiceImpl implements PileReservationInfoServic
|
||||
.connectorCode(pileReservationInfo.getPileConnectorCode().replace(pileReservationInfo.getPileSn(), ""))
|
||||
.operation("02")
|
||||
.reservationType(type)
|
||||
.verifyIdentity(dto.getVerifyIdentity())
|
||||
.vin1(vinCodes.get(0))
|
||||
.vin2(vinCodes.get(1))
|
||||
.vin3(vinCodes.get(2))
|
||||
|
||||
@@ -505,6 +505,10 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
|
||||
String reservationType = command.getReservationType();
|
||||
byte[] reservationTypeByteArr = BytesUtil.str2Bcd(reservationType);
|
||||
|
||||
// 身份验证
|
||||
String verifyIdentity = command.getVerifyIdentity();
|
||||
byte[] verifyIdentityByteArr = BytesUtil.str2Bcd(verifyIdentity);
|
||||
|
||||
// VIN1
|
||||
String vin1 = command.getVin1();
|
||||
byte[] vin1ByteArr = BytesUtil.str2Asc(vin1);
|
||||
@@ -532,7 +536,7 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
|
||||
|
||||
// 拼装msg信息
|
||||
byte[] msg = Bytes.concat(transactionCodeArr, pileSnByteArr, connectorCodeByteArr, operateByteArr,
|
||||
reservationTypeByteArr, vin1ByteArr, vin2ByteArr, vin3ByteArr,
|
||||
reservationTypeByteArr, verifyIdentityByteArr, vin1ByteArr, vin2ByteArr, vin3ByteArr,
|
||||
reservedStartTimeByteArr, reservedEndTimeByteArr, amountByteArr);
|
||||
|
||||
this.push(msg, pileSn, YKCFrameTypeCode.RESERVATION_CHARGING_CODE);
|
||||
|
||||
Reference in New Issue
Block a user