Lius
2025-06-20 fb248488ca953d6b2f2fb1b4f7f30a1ba65d030e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package org.jeecg.modules.tms.enums;
 
import lombok.Getter;
 
@Getter
public enum OutStorehouseType {
 
    TOOL_BORROW("1", "工具借用"),
    MAINTENANCE_OUTBOUND("2", "维修出库"),
    CALIBRATION_OUTBOUND("3", "检定出库"),
    GRINDING_OUTBOUND("4", "刃磨出库");
 
    private final String value;
    private final String description;
 
    OutStorehouseType(String value, String description) {
        this.value = value;
        this.description = description;
    }
 
    public static OutStorehouseType getByValue(String value) {
        for (OutStorehouseType type : OutStorehouseType.values()) {
            if (type.getValue().equals(value)) {
                return type;
            }
        }
        throw new IllegalArgumentException("Invalid enum value: " + value);
    }
}