From 9cab295b83b2301c711e5d3cbee143654508e703 Mon Sep 17 00:00:00 2001 From: Guoqs <123@jsowell.com> Date: Sat, 14 Sep 2024 15:13:06 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E7=94=B5=E5=8D=95=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/jsowell/api/uniapp/customer/TempController.java | 5 +++-- .../pile/service/impl/EBikeSendCommandServiceImpl.java | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/jsowell-admin/src/main/java/com/jsowell/api/uniapp/customer/TempController.java b/jsowell-admin/src/main/java/com/jsowell/api/uniapp/customer/TempController.java index baa03c607..f59cb3bcb 100644 --- a/jsowell-admin/src/main/java/com/jsowell/api/uniapp/customer/TempController.java +++ b/jsowell-admin/src/main/java/com/jsowell/api/uniapp/customer/TempController.java @@ -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); diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/EBikeSendCommandServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/EBikeSendCommandServiceImpl.java index 6089aeaf1..a04b13bd3 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/EBikeSendCommandServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/EBikeSendCommandServiceImpl.java @@ -125,7 +125,8 @@ public class EBikeSendCommandServiceImpl implements EBikeSendCommandService { data.setFullChargePower(0); data.setMaxFullChargePowerCheckTime(0); message.setData(data); - this.send(message); + byte[] send = this.send(message); + log.info("电单车发送停止充电指令response:{}", BytesUtil.binary(send, 16)); } /**