|
|
|
@ -12,6 +12,38 @@ import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
|
|
|
|
|
|
public class MesEnumUtil {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* MES_SPC关键数据
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum SPC_KEY_DATA_OBJECT_TYPE{
|
|
|
|
|
POJO_OBJECT(10,"实体对象(单表)"),
|
|
|
|
|
DYNAMIC(20,"动态对象(生产数据表)");
|
|
|
|
|
|
|
|
|
|
private Integer objectType;
|
|
|
|
|
private String description;
|
|
|
|
|
SPC_KEY_DATA_OBJECT_TYPE(Integer objectType,String description ){
|
|
|
|
|
this.objectType = objectType;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getObjectType() {
|
|
|
|
|
return objectType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setObjectType(Integer objectType) {
|
|
|
|
|
this.objectType = objectType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setDescription(String description) {
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum HQL_EXPRESSION {
|
|
|
|
|
GT(">", ">", "大于"),
|
|
|
|
@ -111,6 +143,36 @@ public class MesEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 启用还是禁用
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum IS_VALID{
|
|
|
|
|
YES(1,"启用"),
|
|
|
|
|
NO(2,"禁用");
|
|
|
|
|
private Integer isValid;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
IS_VALID(int isValid,String description){
|
|
|
|
|
this.isValid = isValid;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
public int getIsValid() {
|
|
|
|
|
return isValid;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setIsValid(int isValid) {
|
|
|
|
|
this.isValid = isValid;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setDescription(String description) {
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 排序方式
|
|
|
|
|
*/
|
|
|
|
|
public enum ASC_OR_DESC {
|
|
|
|
|