#
Junjie
4 天以前 2f9849905dbb8d65faa28628a40084708a0386ef
src/main/java/com/zy/core/model/protocol/CrnProtocol.java
@@ -6,9 +6,8 @@
import com.zy.core.enums.CrnStatusType;
import lombok.Data;
/**
 * Created by vincent on 2020/8/7
 */
import java.util.Map;
@Data
public class CrnProtocol {
@@ -22,11 +21,6 @@
    public Integer mode;
    public CrnModeType modeType;
    /**
     * 1 = 急停
     */
    public Integer eStop;
    /**
     * 异常码
@@ -110,37 +104,37 @@
    /**
     * X行走线速度m/min
     */
    private Float xSpeed;
    private Integer xSpeed;
    /**
     * Y行走线速度m/min
     */
    private Float ySpeed;
    private Integer ySpeed;
    /**
     * Z行走线速度m/min
     */
    private Float zSpeed;
    private Integer zSpeed;
    /**
     * 堆垛机累计走行距离km
     */
    public Float xDistance;
    public Integer xDistance;
    /**
     * 堆垛机累计升降距离km
     */
    public Float yDistance;
    public Integer yDistance;
    /**
     * 堆垛机累计走行时长h
     */
    public Float xDuration;
    public Integer xDuration;
    /**
     * 堆垛机累计升降时长h
     */
    public Float yDuration;
    public Integer yDuration;
    /**
     * 最近一次入出库类型
@@ -155,6 +149,16 @@
    private Integer crnLane = 1;
    /**
     * 称重数据
     */
    private Double weight;
    /**
     * 条码数据
     */
    private String barcode;
    /**
     * 日志采集时间
     */
    private Long deviceDataLog = System.currentTimeMillis();
@@ -164,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);