|
|
@ -20,19 +20,27 @@ public class MesEnumUtil {
|
|
|
|
POJO_OBJECT(10,"实体对象(单表)"),
|
|
|
|
POJO_OBJECT(10,"实体对象(单表)"),
|
|
|
|
DYNAMIC(20,"动态对象(生产数据表)");
|
|
|
|
DYNAMIC(20,"动态对象(生产数据表)");
|
|
|
|
|
|
|
|
|
|
|
|
private Integer objectType;
|
|
|
|
private Integer value;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
SPC_KEY_DATA_OBJECT_TYPE(Integer objectType,String description ){
|
|
|
|
SPC_KEY_DATA_OBJECT_TYPE(Integer value,String description ){
|
|
|
|
this.objectType = objectType;
|
|
|
|
this.value = value;
|
|
|
|
this.description = description;
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public static String valueOfDesc(String val) {
|
|
|
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
|
|
|
if (values()[i].value.equals(val)) {
|
|
|
|
|
|
|
|
return values()[i].description;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Integer getObjectType() {
|
|
|
|
public Integer getValue() {
|
|
|
|
return objectType;
|
|
|
|
return value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setObjectType(Integer objectType) {
|
|
|
|
public void setValue(Integer value) {
|
|
|
|
this.objectType = objectType;
|
|
|
|
this.value = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
public String getDescription() {
|
|
|
|