自动化立体仓库 - WCS系统
#
yxFwq
2025-01-01 716f7e3dec477b1dffe2ff33182116f558be60b0
src/main/java/com/zy/core/model/protocol/JarProtocol.java
@@ -7,6 +7,8 @@
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import java.util.Date;
/**
 * Created by vincent on 2024/6/21
 */
@@ -111,6 +113,11 @@
    public Float jarTemperature;
    public Float jarPressure;
    public boolean holdingSign = false;
    public boolean openDoorSign = false;
    public boolean closeDoorSign = false;
    public Short upStatus = 0;
    /**
@@ -153,6 +160,22 @@
        basJar.setAutoing(autoing?"Y":"N");
        basJar.setJarTemperature(jarTemperature);
        basJar.setJarPressure(jarPressure);
        basJar.setLeftDoorOpen(leftDoorOpen);
        basJar.setLeftDoorClose(leftDoorClose);
        basJar.setRightDoorOpen(rightDoorOpen);
        basJar.setRightDoorClose(rightDoorClose);
        if (holdingSign){
            basJar.setHoldingTime(new Date());
            holdingSign = false;
        }
        if (openDoorSign){
            basJar.setOpenTime(new Date());
            openDoorSign = false;
        }
        if (closeDoorSign){
            basJar.setCloseTime(new Date());
            closeDoorSign = false;
        }
        return basJar;
    }