数据抽取修改 1116

yun-zuoyi
WYnneaoapc 6 years ago
parent 46e0488d5a
commit 855cc46448

@ -1903,18 +1903,18 @@ public class MesPcnEnumUtil {
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ONLINE_SEND_TYPE { public enum ONLINE_SEND_TYPE {
PLC(10, "PLC"), PLC("PLC", "PLC"),
DB(20, "DB"); DB("DB", "DB");
private int value; private String value;
private String description; private String description;
ONLINE_SEND_TYPE(int value, String description) { ONLINE_SEND_TYPE(String value, String description) {
this.value = value; this.value = value;
this.description = description; this.description = description;
} }
public int getValue() { public String getValue() {
return value; return value;
} }
@ -1922,7 +1922,7 @@ public class MesPcnEnumUtil {
return description; return description;
} }
public static String valueOfDescription(int val) { public static String valueOfDescription(String val) {
String tmp = null; String tmp = null;
for (int i = 0; i < values().length; i++) { for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) { if (values()[i].value == val) {

Loading…
Cancel
Save