bypass优化

yun-zuoyi
joke.wang 5 years ago
parent fc351f5599
commit 612c919e5f

@ -5512,4 +5512,52 @@ public class MesPcnEnumUtil {
return tmp; return tmp;
} }
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PRODUCE_CATEGORY_NAME {
FL("FL", "前右"),
FR("FR", "前左"),
RL("RL", "后左"),
RR("RR", "后右");
private String description;
private String value;
PRODUCE_CATEGORY_NAME(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value.equals(val)) {
tmp = values()[i].description;
}
}
return tmp;
}
public static String descriptionOfValue(String description) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
} }

@ -170,4 +170,12 @@ public class MesQueueJitActual extends BaseBean implements Serializable {
@ApiParam(value = "零件号") @ApiParam(value = "零件号")
public String partNo; public String partNo;
@Transient
@ApiParam(value = "客户零件号")
public String custPartNo;
@Transient
@ApiParam(value = "qty")
public Integer qty;
} }

Loading…
Cancel
Save