Pu Zhibing
2025-03-11 f56262ee1cb3c554878984e3536ab55a298bdedf
ruoyi-service/ruoyi-dataInterchange/src/main/java/com/ruoyi/dataInterchange/model/DOWNExgMsgTakeEwaybillReq.java
@@ -7,6 +7,7 @@
/**
 * 上报车辆电子运单请求
 *
 * @author zhibing.pu
 * @Date 2025/3/3 11:06
 */
@@ -36,11 +37,15 @@
   public byte[] encode() {
      ByteBuf byteBuf = Unpooled.buffer(28);
      byte[] bytes1 = this.getVehicleNo().getBytes();
      for (byte b : bytes1) {
         byteBuf.writeByte(b);
      for (int i = 0; i < 21; i++) {
         if (i < bytes1.length) {
            byteBuf.writeByte(bytes1[i]);
         } else {
            byteBuf.writeByte(0x00);
         }
      }
      byteBuf.writeByte(this.getVehicleColor());
      byteBuf.writeByte(this.getDataType());
      byteBuf.writeShort(this.getDataType());
      byteBuf.writeInt(this.getDataLength());
      byte[] bytes = ByteBufUtil.getBytes(byteBuf);
      byteBuf.release();