mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update 电单车
This commit is contained in:
@@ -97,6 +97,28 @@ public class TempController extends BaseController {
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 电单车结束充电
|
||||
* http://localhost:8080/temp/tempStopCharging
|
||||
*/
|
||||
@PostMapping("/tempStopCharging")
|
||||
public RestApiResponse<?> tempStopCharging(@RequestBody QueryOrderDTO dto) {
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
StartChargingCommand command = StartChargingCommand.builder()
|
||||
.pileSn(dto.getPileSn())
|
||||
.connectorCode(dto.getConnectorCode())
|
||||
.transactionCode(dto.getTransactionCode())
|
||||
.build();
|
||||
eBikeSendCommandService.sendStartChargingCommand(command);
|
||||
response = new RestApiResponse<>();
|
||||
} catch (Exception e) {
|
||||
logger.error("电单车结束充电 error", e);
|
||||
response = new RestApiResponse<>(ReturnCodeEnum.CODE_FAILED);
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 对时
|
||||
* http://localhost:8080/temp/proofreadTimeTest
|
||||
|
||||
Reference in New Issue
Block a user