图片展示类型

yun-zuoyi
wynne1005 5 years ago
parent d13c46e740
commit b00bcf66b2

@ -5836,4 +5836,39 @@ public class MesPcnEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum IMG_DISPLAY_TYPE {
STEP(10, "按工步显示"),
WORK_CELL(20, "按工位显示");
private Integer value;
private String description;
IMG_DISPLAY_TYPE(Integer value, String description) {
this.value = value;
this.description = description;
}
public Integer getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(Integer value) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
tmp = values()[i].description;
}
}
return tmp;
}
}
}

Loading…
Cancel
Save