liujie
2025-08-07 8ea377e0c6977ff0d97c4f2aa7986741600e4393
ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPWarnMsgAdptInfo.java
@@ -6,6 +6,7 @@
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
@@ -16,6 +17,7 @@
 * @author zhibing.pu
 * @Date 2025/3/3 14:50
 */
@Slf4j
@Data
@Document(indexName = "up_warn_msg_adpt_info")
public class UPWarnMsgAdptInfo extends BaseModel {
@@ -65,7 +67,7 @@
   /**
    * 报警时间
    */
   @Field(type = FieldType.Integer)
   @Field(type = FieldType.Long)
   private long warnTime;
   /**
    * 信息ID
@@ -217,8 +219,10 @@
         byte[] readableBytes = new byte[8];
         byteBuf.readBytes(readableBytes);
         String time = ByteArrayUtil.bytes2HexStr(readableBytes);
         log.info("报警时间1: {}", time);
         //报警时间
         this.warnTime = Long.parseLong(time, 16);
         log.info("报警时间2: {}", this.warnTime);
         //团标扩展
         //信息ID
         this.infoId = Jtt809Util.readGBKString(byteBuf,32);