零件发运组-圆整方式 枚举修改

tags/yfai-mes-ext-v1.0
LML丶 1 year ago
parent 28ad2676de
commit b22ccc606f

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

Loading…
Cancel
Save