mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-01 12:38:04 +08:00
bugfix 羽信预约充电独立逻辑
补齐 0xB2 协议字段,新增羽信预约 DTO、service 和接口。 羽信预约改为先确认桩端成功再落库,取消/删除前先取消桩端预约。 原预约逻辑不再兼容羽信主板,保持旧链路独立。
This commit is contained in:
@@ -514,8 +514,21 @@ public class PileRemoteService {
|
||||
* @return result: 1-成功; 0-失败
|
||||
*/
|
||||
public String reservationCharging(ReservationChargingCommand command) {
|
||||
String result = "0";
|
||||
byte[] bytes = ykcPushCommandService.pushReservationChargingCommand(command);
|
||||
return parseReservationChargingResponse(bytes);
|
||||
}
|
||||
|
||||
/**
|
||||
* 羽信预约充电指令
|
||||
* @return result: 1-成功; 0-失败
|
||||
*/
|
||||
public String yuxinReservationCharging(YuxinReservationChargingCommand command) {
|
||||
byte[] bytes = ykcPushCommandService.pushYuxinReservationChargingCommand(command);
|
||||
return parseReservationChargingResponse(bytes);
|
||||
}
|
||||
|
||||
private String parseReservationChargingResponse(byte[] bytes) {
|
||||
String result = "0";
|
||||
// 解析结果
|
||||
if (Objects.isNull(bytes)) {
|
||||
result = "0";
|
||||
|
||||
Reference in New Issue
Block a user