jiangping
2025-02-14 e3067f58cce422bbd26a7729bf59f5f4f34a530f
server/jtt808_parent/jtt808-protocol/src/test/java/org/yzh/protocol/JT808Beans.java
@@ -2,6 +2,7 @@
import io.github.yezhihao.protostar.util.KeyValuePair;
import io.netty.buffer.Unpooled;
import io.swagger.models.auth.In;
import org.yzh.protocol.basics.JTMessage;
import org.yzh.protocol.commons.Action;
import org.yzh.protocol.commons.ShapeAction;
@@ -193,7 +194,7 @@
    //位置信息汇报
    public static T0200 T0200Attributes() {
        T0200 bean = T0200();
        Map<Long, Object> attributes = new TreeMap<>();
        Map<Integer, Object> attributes = new TreeMap<>();
        attributes.put(AttributeKey.Mileage, 11);
        attributes.put(AttributeKey.Fuel, 22);
        attributes.put(AttributeKey.Speed, 33);
@@ -290,11 +291,11 @@
        T0200 bean = T0200();
        Map<Long, Object> attributes = new TreeMap<>();
        attributes.put(Long.valueOf(AlarmADAS.key), alarmADAS);
        attributes.put(Long.valueOf(AlarmDSM.key), alarmDSM);
        attributes.put(Long.valueOf(AlarmTPMS.key), alarmTPMS);
        attributes.put(Long.valueOf(AlarmBSD.key), alarmBSD);
        Map<Integer, Object> attributes = new TreeMap<>();
        attributes.put( AlarmADAS.key, alarmADAS);
        attributes.put( AlarmDSM.key, alarmDSM);
        attributes.put( AlarmTPMS.key, alarmTPMS);
        attributes.put( AlarmBSD.key, alarmBSD);
        bean.setAttributes(attributes);
        return bean;