mgn-bj强制封箱完成后重置数据

yun-zuoyi
joke.wang 5 years ago
parent 915b86973d
commit e18b6c727e

@ -5974,4 +5974,58 @@ public class MesPcnEnumUtil {
return tmp; return tmp;
} }
} }
/**
* 线
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PRE_WORK_CENTER_CODE {
OP10("OP10", "OP10"),
OP20A("OP20a", "OP20a"),
OP20B("OP20b", "OP20b");
private String code;
private String description;
PRE_WORK_CENTER_CODE(String code, String description) {
this.code = code;
this.description = description;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
public static PRE_WORK_CENTER_CODE getByCode(String code) {
for (PRE_WORK_CENTER_CODE workCenterCode : values()) {
if (workCenterCode.getCode().equals(code)) {
return workCenterCode;
}
}
return null;
}
public static String codeOfDescription(String code) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i].description;
}
}
return tmp;
}
public static String valueOfDescription(String code) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i].description;
}
}
return tmp;
}
}
} }

Loading…
Cancel
Save