Merge branch 'test' of http://git.estsh.com/i3-IMPP/i3plus-pojo into ext-dev

yun-zuoyi
puxiao.liao 4 years ago
commit 70ec23db12

@ -8605,4 +8605,38 @@ public class MesEnumUtil {
return description;
}
}
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TOOLING_TYPE {
WORK_CLOTHES(10, "工装"),
INSPECTION_TOOL(20, "检具"),
MOULD(30, "模具");
private int value;
private String description;
TOOLING_TYPE(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 value;
}
public String getDescription() {
return description;
}
}
}

Loading…
Cancel
Save