新增bean repository

tags/yfai-mes-ext-v1.0
LML丶 1 year ago
parent 9db8f63631
commit 78e691fcb7

@ -1163,6 +1163,47 @@ public class MesExtEnumUtil {
}
/**
* PTR-
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public static enum PTR_PART_TYPE {
CP(10, "CP"),
OHS(20, "OHS"),
DPFL(30, "DPFL"),
DPFR(40, "DPFR"),
DPRL(50, "DPRL"),
DPRR(60, "DPRR");
private int value;
private String description;
private PTR_PART_TYPE(int value, String description) {
this.value = value;
this.description = 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;
}
public int getValue() {
return this.value;
}
public String getDescription() {
return this.description;
}
}
/**
* -
*/
@JsonFormat(

Loading…
Cancel
Save