bug`6866` 2 打印模板同步

yun-zuoyi
WYnneaoapc 6 years ago
parent f4b50200b2
commit ca952d5211

@ -12,6 +12,38 @@ import com.fasterxml.jackson.annotation.JsonFormat;
public class MesEnumUtil { public class MesEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TRUE_OR_FALSE {
TRUE(1, "是"),
FALSE(2, "否");
private int value;
private String description;
TRUE_OR_FALSE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return 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;
}
}
/** /**
* - MES_PACK_SPEC * - MES_PACK_SPEC
* 10. * 10.
@ -172,7 +204,9 @@ public class MesEnumUtil {
this.description = description; this.description = description;
} }
public String getValue() { return value;} public String getValue() {
return value;
}
public String getDescription() { public String getDescription() {
return description; return description;

Loading…
Cancel
Save