#
Junjie
5 天以前 5e4345b5903010cbd63bb7edad3bbce479e2b57d
src/main/java/com/zy/core/model/protocol/CrnProtocol.java
@@ -6,6 +6,8 @@
import com.zy.core.enums.CrnStatusType;
import lombok.Data;
import java.util.Map;
@Data
public class CrnProtocol {
@@ -102,37 +104,37 @@
    /**
     * X行走线速度m/min
     */
    private Integer xSpeed;
    private Double xSpeed;
    /**
     * Y行走线速度m/min
     */
    private Integer ySpeed;
    private Double ySpeed;
    /**
     * Z行走线速度m/min
     */
    private Integer zSpeed;
    private Double zSpeed;
    /**
     * 堆垛机累计走行距离km
     */
    public Integer xDistance;
    public Double xDistance;
    /**
     * 堆垛机累计升降距离km
     */
    public Integer yDistance;
    public Double yDistance;
    /**
     * 堆垛机累计走行时长h
     */
    public Integer xDuration;
    public Double xDuration;
    /**
     * 堆垛机累计升降时长h
     */
    public Integer yDuration;
    public Double yDuration;
    /**
     * 最近一次入出库类型
@@ -147,6 +149,16 @@
    private Integer crnLane = 1;
    /**
     * 称重数据
     */
    private Double weight;
    /**
     * 条码数据
     */
    private String barcode;
    /**
     * 日志采集时间
     */
    private Long deviceDataLog = System.currentTimeMillis();
@@ -156,6 +168,11 @@
     */
    private Long lastCommandTime = System.currentTimeMillis();
    /**
     * 扩展数据
     */
    private Map<String, Object> extend;
    public void setMode(Integer mode) {
        this.mode = mode;
        this.modeType = CrnModeType.get(mode);