#
lsh
2024-06-21 c147a3dc2a56ab23b1cfeafef3de2867593f4206
src/main/java/com/zy/core/model/protocol/JarProtocol.java
@@ -8,7 +8,7 @@
import lombok.extern.slf4j.Slf4j;
/**
 * Created by vincent on 2020/8/7
 * Created by vincent on 2024/6/21
 */
@Slf4j
@Data
@@ -73,6 +73,26 @@
     * */
    private boolean autoing;
    /*
     * open the left door
     * */
    public Integer leftDoorOpen;
    /*
     * close the left door
     * */
    public Integer leftDoorClose;
    /*
     * open the right door
     * */
    public Integer rightDoorOpen;
    /*
     * close the right door
     * */
    public Integer rightDoorClose;
    /**
     * 异常码
@@ -104,17 +124,15 @@
            basJar.setJarErr(jarErr);
        }
        basJar.setJarMode(mode);
//        if (basSte.getPakMk().equals("N")) {
//            if (!Cools.isEmpty(row)) {
//                basSte.setRow(row.intValue());
//            }
//            if (!Cools.isEmpty(bay)) {
//                basSte.setBay(bay.intValue());
//            }
//            if (!Cools.isEmpty(lev)) {
//                basSte.setLev(lev.intValue());
//            }
//        }
        basJar.setJarStatus(status.intValue());
        basJar.setLeftDoor(leftDoor?"Y":"N");
        basJar.setRightDoor(rightDoor?"Y":"N");
        basJar.setLeftInEnable(leftInEnable?"Y":"N");
        basJar.setLeftOutEnable(leftOutEnable?"Y":"N");
        basJar.setRightInEnable(rightInEnable?"Y":"N");
        basJar.setRightOutEnable(rightOutEnable?"Y":"N");
        basJar.setAutoing(autoing?"Y":"N");
        return basJar;
    }