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);
|
}
|
}
|