jiazx0107@163.com
2023-05-27 b667644b1a9f93583b4bb2d508c570c65aa3497b
igds-protocol-fzzy3/src/main/java/com/ld/igds/protocol/fzzy/ServerUtils.java
@@ -3,7 +3,6 @@
import com.ld.igds.constant.*;
import com.ld.igds.io.request.ExeDevice;
import com.ld.igds.n2.N2ModelTag;
import com.ld.igds.n2.N2Util;
import com.ld.igds.util.ContextUtil;
import com.ld.igds.verb.AreationModel;
import org.apache.commons.lang3.StringUtils;
@@ -97,15 +96,15 @@
    public static String RESP_9999 = "9999";//   未知错误
    //仓库状态
    static String DEPOT_STATUS_1001 = "1001";
    static String DEPOT_STATUS_2001 = "2001";
    static String DEPOT_STATUS_3001 = "3001";
    static String DEPOT_STATUS_4001 = "4001";
    static String DEPOT_STATUS_5001 = "5001";
    static String DEPOT_STATUS_6001 = "6001";
    static String DEPOT_STATUS_7001 = "7001";
    static String DEPOT_STATUS_8001 = "8001";
    static String DEPOT_STATUS_9001 = "9001";
    static String DEPOT_STATUS_1001 = "1001";//通风
    static String DEPOT_STATUS_2001 = "2001";//气调
    static String DEPOT_STATUS_3001 = "3001";//熏蒸
    static String DEPOT_STATUS_4001 = "4001";//温控
    static String DEPOT_STATUS_5001 = "5001";//维修
    static String DEPOT_STATUS_6001 = "6001";//出库
    static String DEPOT_STATUS_7001 = "7001";//入库
    static String DEPOT_STATUS_8001 = "8001";//满仓
    static String DEPOT_STATUS_9001 = "9001";//空仓
    //设备类型
    public static String DEVICE_TYPE_1 = "1";// 风窗
@@ -189,65 +188,60 @@
     * @return
     */
    public static String analysisDepotStatus(String status) {
        if (null == status) return null;
        if (status.equals(DEPOT_STATUS_1001)) {
            return DepotStatus.STATUS_07.getCode();
            return DepotStatus.STATUS_33.getCode();
        }
        if (status.equals(DEPOT_STATUS_2001)) {
            return DepotStatus.STATUS_05.getCode();
            return DepotStatus.STATUS_31.getCode();
        }
        if (status.equals(DEPOT_STATUS_3001)) {
            return DepotStatus.STATUS_06.getCode();
            return DepotStatus.STATUS_32.getCode();
        }
        if (status.equals(DEPOT_STATUS_4001)) {
            return DepotStatus.STATUS_09.getCode();
            return DepotStatus.STATUS_34.getCode();
        }
        if (status.equals(DEPOT_STATUS_5001)) {
            return DepotStatus.STATUS_08.getCode();
            return DepotStatus.STATUS_9.getCode();
        }
        if (status.equals(DEPOT_STATUS_6001)) {
            return DepotStatus.STATUS_04.getCode();
            return DepotStatus.STATUS_4.getCode();
        }
        if (status.equals(DEPOT_STATUS_7001)) {
            return DepotStatus.STATUS_03.getCode();
            return DepotStatus.STATUS_2.getCode();
        }
        if (status.equals(DEPOT_STATUS_8001)) {
            return DepotStatus.STATUS_02.getCode();
            return DepotStatus.STATUS_3.getCode();
        }
        return DepotStatus.STATUS_01.getCode();
        return DepotStatus.STATUS_1.getCode();
    }
    public static String getDepotSendStatus(String status) {
        if (status.equals(DepotStatus.STATUS_07.getCode())) {
        if (status.equals(DepotStatus.STATUS_33.getCode())) {
            return DEPOT_STATUS_1001;
        }
        if (status.equals(DepotStatus.STATUS_05.getCode())) {
        if (status.equals(DepotStatus.STATUS_31.getCode())) {
            return DEPOT_STATUS_2001;
        }
        if (status.equals(DepotStatus.STATUS_06.getCode())) {
        if (status.equals(DepotStatus.STATUS_32.getCode())) {
            return DEPOT_STATUS_3001;
        }
        if (status.equals(DepotStatus.STATUS_09.getCode())) {
        if (status.equals(DepotStatus.STATUS_34.getCode())) {
            return DEPOT_STATUS_4001;
        }
        if (status.equals(DepotStatus.STATUS_08.getCode())) {
        if (status.equals(DepotStatus.STATUS_9.getCode())) {
            return DEPOT_STATUS_5001;
        }
        if (status.equals(DepotStatus.STATUS_04.getCode())) {
        if (status.equals(DepotStatus.STATUS_4.getCode())) {
            return DEPOT_STATUS_6001;
        }
        if (status.equals(DepotStatus.STATUS_03.getCode())) {
        if (status.equals(DepotStatus.STATUS_2.getCode())) {
            return DEPOT_STATUS_7001;
        }
        if (status.equals(DepotStatus.STATUS_02.getCode())) {
        if (status.equals(DepotStatus.STATUS_3.getCode())) {
            return DEPOT_STATUS_8001;
        }
        return DepotStatus.STATUS_01.getCode();
        return DepotStatus.STATUS_1.getCode();
    }
    /**