From 655ba6bfba4b1087e093efe675e46afbff597b97 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期二, 27 一月 2026 09:19:38 +0800
Subject: [PATCH] #
---
zy-acs-common/src/main/java/com/zy/acs/common/domain/protocol/action/ReadyTakeFromShelvesLoc.java | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/zy-acs-common/src/main/java/com/zy/acs/common/domain/protocol/action/ReadyTakeFromShelvesLoc.java b/zy-acs-common/src/main/java/com/zy/acs/common/domain/protocol/action/ReadyTakeFromShelvesLoc.java
index 88500f0..eef4c92 100644
--- a/zy-acs-common/src/main/java/com/zy/acs/common/domain/protocol/action/ReadyTakeFromShelvesLoc.java
+++ b/zy-acs-common/src/main/java/com/zy/acs/common/domain/protocol/action/ReadyTakeFromShelvesLoc.java
@@ -1,6 +1,5 @@
package com.zy.acs.common.domain.protocol.action;
-import com.zy.acs.framework.common.RadixTools;
import com.zy.acs.common.domain.protocol.IActionBody;
import com.zy.acs.common.utils.Utils;
import lombok.Data;
@@ -19,11 +18,17 @@
@Override
public byte[] writeToBytes() {
- byte[] heightBytes = Utils.reverse(RadixTools.shortToByte(this.height));
- byte[] depthBytes = Utils.reverse(RadixTools.shortToByte(this.depth));
- return Utils.merge(heightBytes, depthBytes);
+// byte[] heightBytes = Utils.reverse(RadixTools.shortToByte(this.height));
+// byte[] depthBytes = Utils.reverse(RadixTools.shortToByte(this.depth));
+// return Utils.merge(heightBytes, depthBytes);
+
+ byte heightByte = (byte) ((this.height == null ? 0 : this.height) & 0xFF);
+ byte depthByte = (byte) ((this.depth == null ? 0 : this.depth) & 0xFF);
+ return Utils.merge(heightByte, depthByte);
+// return new byte[]{ heightByte, depthByte };
}
+
@Override
public void readFromBytes(byte[] messageBodyBytes) {
--
Gitblit v1.9.1