【15872 20027--PCN端工位扫描增加数据复核工步,校验采集的数据完整性和数据质量是否合格--2021-05-22】

yun-zuoyi
陈思洁 4 years ago
parent e8fdaa58be
commit 1f84c2f8aa

@ -6653,4 +6653,74 @@ public class MesPcnEnumUtil {
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_WORK_CELL_GRADE {
ORDINARY(10, "普通工位"),
MONITOR(20, "监听工位");
private int value;
private String description;
MES_WORK_CELL_GRADE(int value, String description) {
this.value = value;
this.description = 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;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum QC_FILED_TYPE {
NUMBER(10, "数字"),
STRING(20, "字符串");
private int value;
private String description;
QC_FILED_TYPE(int value, String description) {
this.value = value;
this.description = 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;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
}
}

@ -3815,4 +3815,14 @@ public class MesHqlPack {
DdlPreparedPack.getNumEqualPack(mesPartSpecific.getIsValid(), "isValid", packBean);
return packBean;
}
public static DdlPackBean getMesDbDataCheck(MesDbDataCheck mesDbDataCheck) {
DdlPackBean packBean = getAllBaseData(mesDbDataCheck.getOrganizeCode());
DdlPreparedPack.getStringEqualPack(mesDbDataCheck.getWorkCenterCode(), "workCenterCode", packBean);
DdlPreparedPack.getStringEqualPack(mesDbDataCheck.getPartNo(), "partNo", packBean);
DdlPreparedPack.getStringLikerPack(mesDbDataCheck.getObjectCode(), "objectCode", packBean);
DdlPreparedPack.getStringLikerPack(mesDbDataCheck.getQcFiledCode(), "qcFiledCode", packBean);
DdlPreparedPack.getNumEqualPack(mesDbDataCheck.getIsValid(), "isValid", packBean);
return packBean;
}
}

Loading…
Cancel
Save