update 电单车

This commit is contained in:
Guoqs
2024-09-14 17:19:05 +08:00
parent e85e630282
commit 86dd583ad6
6 changed files with 167 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
package com.jsowell.pile.service;
import com.alibaba.fastjson2.JSON;
import com.google.common.collect.Lists;
import com.jsowell.common.constant.CacheConstants;
import com.jsowell.common.core.domain.ykc.YKCDataProtocol;
@@ -11,6 +12,7 @@ import com.jsowell.common.util.BytesUtil;
import com.jsowell.common.util.StringUtils;
import com.jsowell.pile.domain.PileBillingTemplate;
import com.jsowell.pile.domain.PileFirmwareInfo;
import com.jsowell.pile.domain.ebike.deviceupload.ChargingOperationResponse;
import com.jsowell.pile.domain.ykcCommond.*;
import com.jsowell.pile.dto.PublishBillingTemplateDTO;
import com.jsowell.pile.dto.RemoteAccountBalanceUpdateDTO;
@@ -127,7 +129,8 @@ public class PileRemoteService {
.chargeAmount(chargeAmount)
.build();
try {
eBikeSendCommandService.sendStartChargingCommand(startChargingCommand);
ChargingOperationResponse startChargingResponse = eBikeSendCommandService.sendStartChargingCommand(startChargingCommand);
log.info("StartChargingResponse:{}", JSON.toJSONString(startChargingResponse));
} catch (Exception e) {
log.error("电单车远程启动充电error", e);
}