|
|
|
@ -1892,4 +1892,45 @@ public class MesExtEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 缺陷告警配置-正面反面
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(
|
|
|
|
|
shape = JsonFormat.Shape.OBJECT
|
|
|
|
|
)
|
|
|
|
|
public static enum DEFECT_ALARM_CONFIG_SIDES {
|
|
|
|
|
|
|
|
|
|
FRONT(10, "正面"),
|
|
|
|
|
BACK(20, "反面");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
private DEFECT_ALARM_CONFIG_SIDES(int value, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(int val) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < values().length; ++i) {
|
|
|
|
|
if (values()[i].value == val) {
|
|
|
|
|
tmp = values()[i].description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return this.value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return this.description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|