puzhibing
2025-04-25 0dcba4fd1cb536ab426622e31213d8a0194449ff
ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPWarnMsgUrgeTodoAck.java
@@ -57,17 +57,21 @@
    * 解析报文
    */
   public UPWarnMsgUrgeTodoAck decode(WarnMsg warnMsg) {
      byte[] data = warnMsg.getData();
      ByteBuf byteBuf = Unpooled.wrappedBuffer(data);
      this.vehicleNo = warnMsg.getVehicleNo();
      this.vehicleColor = warnMsg.getVehicleColor();
      this.dataType = warnMsg.getDataType();
      this.dataLength = warnMsg.getDataLength();
      //报警督办ID
      this.supervisionId = byteBuf.readInt();
      //报警处理结果
      this.result = byteBuf.readByte();
      try {
         byte[] data = warnMsg.getData();
         ByteBuf byteBuf = Unpooled.wrappedBuffer(data);
         this.vehicleNo = warnMsg.getVehicleNo();
         this.vehicleColor = warnMsg.getVehicleColor();
         this.dataType = warnMsg.getDataType();
         this.dataLength = warnMsg.getDataLength();
         //报警督办ID
         this.supervisionId = byteBuf.readInt();
         //报警处理结果
         this.result = byteBuf.readByte();
      }catch (Exception e){
         e.printStackTrace();
      }
      return this;
   }
}