添加 中航-DB复核项 枚举

yun-zuoyi
songss 5 years ago
parent 17dae82081
commit 20b40ce294

@ -5211,4 +5211,45 @@ public class MesPcnEnumUtil {
} }
} }
/**
* DB-DB
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_DB_DATA_CHECK_ITEM {
PART_NO_NULL(10, "物料为空复核"),
PART_NO_ORDER(20, "零件工单匹对复核"),
SERIA_LNUMBER_REPEAT(30, "过程条码重复复核"),
SERIA_LNUMBER_NULL(40, "过程条码为空复核"),
PRODUCT_SN_REPEAT(50, "产品二维码重复复核"),
PRODUCT_SN_NULL(60, "产品二维码为空复核"),
KEY_DATA_FILED_NULL(70, "质量关键字段为空复核"),
QC_FAIL_MAX_COUNT(80, "缺陷类型连续超过设定数复核");
private int value;
private String description;
MES_DB_DATA_CHECK_ITEM(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(Integer value) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
tmp = values()[i].description;
}
}
return tmp;
}
}
} }

Loading…
Cancel
Save