数据抽取修改 1116

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

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

Loading…
Cancel
Save