mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-20 15:19:52 +08:00
update 电单车
This commit is contained in:
@@ -15,6 +15,7 @@ import com.jsowell.pile.domain.MemberPlateNumberRelation;
|
|||||||
import com.jsowell.pile.domain.OrderBasicInfo;
|
import com.jsowell.pile.domain.OrderBasicInfo;
|
||||||
import com.jsowell.pile.domain.ykcCommond.ReservationChargingCommand;
|
import com.jsowell.pile.domain.ykcCommond.ReservationChargingCommand;
|
||||||
import com.jsowell.pile.domain.ykcCommond.StartChargingCommand;
|
import com.jsowell.pile.domain.ykcCommond.StartChargingCommand;
|
||||||
|
import com.jsowell.pile.domain.ykcCommond.StopChargingCommand;
|
||||||
import com.jsowell.pile.dto.*;
|
import com.jsowell.pile.dto.*;
|
||||||
import com.jsowell.pile.service.*;
|
import com.jsowell.pile.service.*;
|
||||||
import com.jsowell.pile.service.programlogic.AbstractProgramLogic;
|
import com.jsowell.pile.service.programlogic.AbstractProgramLogic;
|
||||||
@@ -105,12 +106,12 @@ public class TempController extends BaseController {
|
|||||||
public RestApiResponse<?> tempStopCharging(@RequestBody QueryOrderDTO dto) {
|
public RestApiResponse<?> tempStopCharging(@RequestBody QueryOrderDTO dto) {
|
||||||
RestApiResponse<?> response = null;
|
RestApiResponse<?> response = null;
|
||||||
try {
|
try {
|
||||||
StartChargingCommand command = StartChargingCommand.builder()
|
StopChargingCommand command = StopChargingCommand.builder()
|
||||||
.pileSn(dto.getPileSn())
|
.pileSn(dto.getPileSn())
|
||||||
.connectorCode(dto.getConnectorCode())
|
.connectorCode(dto.getConnectorCode())
|
||||||
.transactionCode(dto.getTransactionCode())
|
.transactionCode(dto.getTransactionCode())
|
||||||
.build();
|
.build();
|
||||||
eBikeSendCommandService.sendStartChargingCommand(command);
|
eBikeSendCommandService.sendStopChargingCommand(command);
|
||||||
response = new RestApiResponse<>();
|
response = new RestApiResponse<>();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("电单车结束充电 error", e);
|
logger.error("电单车结束充电 error", e);
|
||||||
|
|||||||
@@ -125,7 +125,8 @@ public class EBikeSendCommandServiceImpl implements EBikeSendCommandService {
|
|||||||
data.setFullChargePower(0);
|
data.setFullChargePower(0);
|
||||||
data.setMaxFullChargePowerCheckTime(0);
|
data.setMaxFullChargePowerCheckTime(0);
|
||||||
message.setData(data);
|
message.setData(data);
|
||||||
this.send(message);
|
byte[] send = this.send(message);
|
||||||
|
log.info("电单车发送停止充电指令response:{}", BytesUtil.binary(send, 16));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user