jiangping
2025-07-15 d0e9bda3ccb554481bcd52d3c9e22a39ef36abc9
server/services/src/main/java/com/doumee/core/constants/Constants.java
@@ -64,6 +64,7 @@
    public static final String INENTITY_FILES = "INENTITY_FILES";
    public static final String MEMBER_FILES = "MEMBER_FILES";
    public static final String CATEGORY_FILES = "CATEGORY_FILES";
    public static final String ORDERS_FILES = "ORDERS_FILES";
    public static boolean WORKORDER_SHE_EMAIL_SENDING = false;
    public static  boolean DEALING_COMPANY_SYNC = false ;
    public static  boolean DEALING_MEMBER_SYNC = false ;
@@ -82,7 +83,7 @@
    interface CacheKey {
    }
    public interface RedisKeys {
        public static final String IMPORTING_CATEGORY = "IMPORTING_CATEGORY";
        public static final String ORDER_CODE = "ORDER_CODE";
    }
    /**
     * 操作类型,用于做接口验证分组
@@ -478,5 +479,49 @@
    }
    public  enum workType {
        czg(0, "采摘工"),
        fjg(1, "分拣工"),
        bzg(2, "包装工"),
        ;
        // 成员变量
        private int key;
        private String name;
        // 构造方法
        workType(int key, String name) {
            this.name = name;
            this.key = key;
        }
        // 普通方法
        public static String getName(int index) {
            for (OrdersLog c : OrdersLog.values()) {
                if (c.getKey() == index) {
                    return c.name;
                }
            }
            return null;
        }
        // get set 方法
        public String getName() {
            return name;
        }
        public void setName(String name) {
            this.name = name;
        }
        public int getKey() {
            return key;
        }
        public void setKey(int key) {
            this.key = key;
        }
    }
}