【1581 工位扫描-记录换模时间 -校验逻辑调整】

yun-zuoyi
陈思洁 5 years ago
parent 417120358c
commit 08ec98305b

@ -3416,4 +3416,41 @@ public class MesPcnEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum DIE_CHANGE_STATUS {
INITIALIZATION(0, "初始化"),
START(1, "开始换模"),
COMPLETE(2, "完成换模");
private int value;
private String description;
DIE_CHANGE_STATUS(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