19048-喷涂工单下发后未给打印状态赋值-20201012

yun-zuoyi
王杰 5 years ago
parent e07829e4ea
commit 1dbb826235

@ -3687,6 +3687,39 @@ public class MesEnumUtil {
}
}
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WORK_ORDER_PRINT_STATUS {
UNPRINTED(10, "未打印"),
PRINTED(20, "已打印");
private int value;
private String description;
WORK_ORDER_PRINT_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;
}
}
/**
* MesProduceSnprintStatus
*/

@ -2585,6 +2585,39 @@ public class MesPcnEnumUtil {
}
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WORK_ORDER_PRINT_STATUS {
UNPRINTED(10, "未打印"),
PRINTED(20, "已打印");
private int value;
private String description;
WORK_ORDER_PRINT_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;
}
}
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PACKAGE_PRINT_STATUS {
UNPRINTED(10, "未打印"),

Loading…
Cancel
Save