mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update 加注释
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -230,6 +230,7 @@ public class YKCPushCommandServiceImpl implements YKCPushCommandService {
|
||||
} else {
|
||||
PileStationVO pileStationVO = pileStationInfoService.getStationInfoByPileSn(pileSn);
|
||||
if (StringUtils.isNotBlank(pileStationVO.getQrcodePrefix())) {
|
||||
// 如果有配置二维码前缀,使用配置里的。(例如希晓)
|
||||
qrCodePrefix = pileStationVO.getQrcodePrefix();
|
||||
} else {
|
||||
// 为空则给平台二维码前缀
|
||||
|
||||
Reference in New Issue
Block a user