Merge remote-tracking branch 'origin/dev' into dev

yun-zuoyi
crish 6 years ago
commit ee51d54030

@ -2055,4 +2055,38 @@ public class MesPcnEnumUtil {
}
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PRODUCT_PATTERN_PARAMS {
MATCH_WORK_ORDER(10, "匹配工单"),
API_WORK_ORDER(20, "读取接口工单"),
SN_WORK_ORDER(30, "获取条码对应工单");
private int value;
private String description;
PRODUCT_PATTERN_PARAMS(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