update 加注释

This commit is contained in:
2024-04-12 11:28:47 +08:00
parent 5f779eee1f
commit 710cbfabd6
2 changed files with 5 additions and 5 deletions

View File

@@ -28,7 +28,6 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import java.util.Objects; import java.util.Objects;
import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletableFuture;
@@ -70,7 +69,7 @@ public class TransactionRecordsRequestHandler extends AbstractHandler {
private CommonService commonService; private CommonService commonService;
public static void main(String[] args) { /*public static void main(String[] args) {
BigDecimal totalElectricity = new BigDecimal("23.73"); BigDecimal totalElectricity = new BigDecimal("23.73");
if (totalElectricity.compareTo(BigDecimal.TEN) > 0) { if (totalElectricity.compareTo(BigDecimal.TEN) > 0) {
// 充电度数大于10度 // 充电度数大于10度
@@ -232,13 +231,13 @@ public class TransactionRecordsRequestHandler extends AbstractHandler {
byte[] vinCodeByteArr = BytesUtil.copyBytes(msgBody, startIndex, length); byte[] vinCodeByteArr = BytesUtil.copyBytes(msgBody, startIndex, length);
String vinCode = BytesUtil.ascii2Str(vinCodeByteArr); String vinCode = BytesUtil.ascii2Str(vinCodeByteArr);
/** *//**
* 交易标识 * 交易标识
* 0x01 app 启动 * 0x01 app 启动
* 0x02卡启动 * 0x02卡启动
* 0x04离线卡启动 * 0x04离线卡启动
* 0x05: vin 码启动充电 * 0x05: vin 码启动充电
*/ *//*
startIndex += length; startIndex += length;
length = 1; length = 1;
byte[] transactionIdentifierByteArr = BytesUtil.copyBytes(msgBody, startIndex, length); byte[] transactionIdentifierByteArr = BytesUtil.copyBytes(msgBody, startIndex, length);
@@ -314,7 +313,7 @@ public class TransactionRecordsRequestHandler extends AbstractHandler {
boolean flag = !StringUtils.equals("0000000000000000", "a511101970000000"); boolean flag = !StringUtils.equals("0000000000000000", "a511101970000000");
System.out.println(flag); System.out.println(flag);
} }*/
@Override @Override
public byte[] supplyProcess(YKCDataProtocol ykcDataProtocol, Channel channel) { public byte[] supplyProcess(YKCDataProtocol ykcDataProtocol, Channel channel) {

View File

@@ -230,6 +230,7 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
} else { } else {
PileStationVO pileStationVO = pileStationInfoService.getStationInfoByPileSn(pileSn); PileStationVO pileStationVO = pileStationInfoService.getStationInfoByPileSn(pileSn);
if (StringUtils.isNotBlank(pileStationVO.getQrcodePrefix())) { if (StringUtils.isNotBlank(pileStationVO.getQrcodePrefix())) {
// 如果有配置二维码前缀,使用配置里的。(例如希晓)
qrCodePrefix = pileStationVO.getQrcodePrefix(); qrCodePrefix = pileStationVO.getQrcodePrefix();
} else { } else {
// 为空则给平台二维码前缀 // 为空则给平台二维码前缀