zhangc
7 天以前 84e12ecd3923f28b62b8659b138a554b0f6e084d
zy-acs-common/src/main/java/com/zy/acs/common/domain/protocol/action/ReadyTakeFromShelvesLoc.java
@@ -1,8 +1,8 @@
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 com.zy.acs.framework.common.RadixTools;
import lombok.Data;
import java.io.Serializable;
@@ -20,7 +20,17 @@
    @Override
    public byte[] writeToBytes() {
        return Utils.reverse(RadixTools.shortToByte(this.height));
//        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) {
@@ -30,4 +40,7 @@
    // 取货高度
    private Short height;
    // 取货深度
    private Short depth;
}