From b31091da56446f57d21c41d009ce7b55a70a9789 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期四, 19 六月 2025 11:59:31 +0800 Subject: [PATCH] 优化报警 --- ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPExgMsgTakeEwayBillAck.java | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPExgMsgTakeEwayBillAck.java b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPExgMsgTakeEwayBillAck.java index 2ff47b4..6237dd5 100644 --- a/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPExgMsgTakeEwayBillAck.java +++ b/ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/UPExgMsgTakeEwayBillAck.java @@ -54,14 +54,18 @@ * 解析报文 */ public UPExgMsgTakeEwayBillAck decode(UPExgMsg exgMsg) { - byte[] data = exgMsg.getData(); - ByteBuf byteBuf = Unpooled.wrappedBuffer(data); - this.vehicleNo = exgMsg.getVehicleNo(); - this.vehicleColor = exgMsg.getVehicleColor(); - this.dataType = exgMsg.getDataType(); - this.dataLength = exgMsg.getDataLength(); - this.ewayBillLength = byteBuf.readInt(); - this.ewayBillInfo = Jtt809Util.readGBKString(byteBuf, this.ewayBillLength); + try { + byte[] data = exgMsg.getData(); + ByteBuf byteBuf = Unpooled.wrappedBuffer(data); + this.vehicleNo = exgMsg.getVehicleNo(); + this.vehicleColor = exgMsg.getVehicleColor(); + this.dataType = exgMsg.getDataType(); + this.dataLength = exgMsg.getDataLength(); + this.ewayBillLength = byteBuf.readInt(); + this.ewayBillInfo = Jtt809Util.readGBKString(byteBuf, this.ewayBillLength); + }catch (Exception e){ + e.printStackTrace(); + } return this; } } -- Gitblit v1.7.1