控制计划-过程检验逻辑调整

yun-zuoyi
songss 5 years ago
parent 05152538b2
commit 3e629e63c5

@ -5836,4 +5836,40 @@ public class MesPcnEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum CONTROL_PLAN_AUDIT_TYPE {
WAIT_AUDIT(10, "待审核"),
AUDIT_PASS(20, "审核通过"),
AUDIT_NON_PASS(30, "审核驳回");
private int value;
private String description;
CONTROL_PLAN_AUDIT_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;
}
}
}

Loading…
Cancel
Save