解决代码冲突

yun-zuoyi
songss 5 years ago
parent 966ed3536b
commit a5b81cb676

@ -7667,83 +7667,6 @@ public class MesEnumUtil {
} }
/** /**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum QC_CHECK_VALUE_TYPE {
STRING(10, "字符串"),
INTEGER(20, "数值");
private int value;
private String description;
QC_CHECK_VALUE_TYPE(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;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum QC_CHECK_DATA_SOURCE {
MANUAL_INPUT(10, "10", "人工输入"),
DB(30, "30", "数据库"),
PLC(20, "20", "PLC");
private int value;
private String description;
private String code;
QC_CHECK_DATA_SOURCE(int value, String code, String description) {
this.value = value;
this.description = description;
this.code = code;
}
public int getValue() {
return value;
}
public String getCode() {
return code;
}
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;
}
}
/**
* *
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)

Loading…
Cancel
Save