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