update 电单车

This commit is contained in:
Guoqs
2024-09-14 15:13:06 +08:00
parent 1d30807687
commit 9cab295b83
2 changed files with 5 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ import com.jsowell.pile.domain.MemberPlateNumberRelation;
import com.jsowell.pile.domain.OrderBasicInfo;
import com.jsowell.pile.domain.ykcCommond.ReservationChargingCommand;
import com.jsowell.pile.domain.ykcCommond.StartChargingCommand;
import com.jsowell.pile.domain.ykcCommond.StopChargingCommand;
import com.jsowell.pile.dto.*;
import com.jsowell.pile.service.*;
import com.jsowell.pile.service.programlogic.AbstractProgramLogic;
@@ -105,12 +106,12 @@ public class TempController extends BaseController {
public RestApiResponse<?> tempStopCharging(@RequestBody QueryOrderDTO dto) {
RestApiResponse<?> response = null;
try {
StartChargingCommand command = StartChargingCommand.builder()
StopChargingCommand command = StopChargingCommand.builder()
.pileSn(dto.getPileSn())
.connectorCode(dto.getConnectorCode())
.transactionCode(dto.getTransactionCode())
.build();
eBikeSendCommandService.sendStartChargingCommand(command);
eBikeSendCommandService.sendStopChargingCommand(command);
response = new RestApiResponse<>();
} catch (Exception e) {
logger.error("电单车结束充电 error", e);