[1078] 补充终端参数

This commit is contained in:
lin
2025-07-21 17:48:02 +08:00
parent 03b5c0241f
commit 9388c279e7
13 changed files with 539 additions and 505 deletions

View File

@@ -9,7 +9,7 @@ import io.netty.buffer.Unpooled;
public class JTAlarmRecordingParam implements JTDeviceSubConfig{
/**
* 特殊报警录像存储阈值, 分比,取值 特殊报警录像占用主存储器存储阈值百 1 ~ 99,默认值为 20
* 特殊报警录像存储阈值, 分比,取值 特殊报警录像占用主存储器存储阈值百 1 ~ 99,默认值为 20
*/
private int storageLimit;

View File

@@ -2,10 +2,14 @@ package com.genersoft.iot.vmp.jt1078.bean.config;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import lombok.Getter;
import lombok.Setter;
/**
* 违规行驶时段范围 ,精确到分
*/
@Setter
@Getter
public class JTIllegalDrivingPeriods implements JTDeviceSubConfig{
/**
* 违规行驶时段-开始时间 HH:mm
@@ -17,22 +21,6 @@ public class JTIllegalDrivingPeriods implements JTDeviceSubConfig{
*/
private String endTime;
public String getStartTime() {
return startTime;
}
public void setStartTime(String startTime) {
this.startTime = startTime;
}
public String getEndTime() {
return endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
}
@Override
public ByteBuf encode() {
ByteBuf byteBuf = Unpooled.buffer();

View File

@@ -83,6 +83,7 @@ public class Jt808Decoder extends ByteToMessageDecoder {
}
Rs decode = handler.decode(buf, header, session, service);
buf.release();
ApplicationEvent applicationEvent = handler.getEvent();
if (applicationEvent != null) {
applicationEventPublisher.publishEvent(applicationEvent);
@@ -90,7 +91,6 @@ public class Jt808Decoder extends ByteToMessageDecoder {
if (decode != null) {
out.add(decode);
}
buf.release();
} finally {
in.skipBytes(in.readableBytes());
}