14539 19081-工艺管理-BYPASS映射关系需按照BYPASS项需要升序排序

yun-zuoyi
joke.wang 4 years ago
parent 46d94c051a
commit 6a00f4f7f9

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 MiB

@ -8383,4 +8383,52 @@ public class MesEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PRODUCE_CATEGORY_NAME {
FL("FL", "前左"),
FR("FR", "前右"),
RL("RL", "后左"),
RR("RR", "后右");
private String description;
private String value;
PRODUCE_CATEGORY_NAME(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value.equals(val)) {
tmp = values()[i].description;
}
}
return tmp;
}
public static String descriptionOfValue(String value) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value.equals(value)) {
tmp = values()[i].description;
}
}
return tmp;
}
}
}

Loading…
Cancel
Save