修改字段BIN_NO

yun-zuoyi
宋军超 5 years ago
parent da9c698ea4
commit 1c93d21815

@ -4331,4 +4331,50 @@ public class MesPcnEnumUtil {
return valueOf(val);
}
}
/**
* MES_
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_COLOR_TYPE {
PRODUCT_COLOR(10, "产品颜色"),
MATERIAL_COLOR(20, "物料颜色");
private int value;
private String description;
MES_COLOR_TYPE(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;
}
public static Integer descriptionOfValue(String description) {
Integer tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
}

@ -47,7 +47,7 @@ public class IfPickData extends BaseBean implements Serializable {
@ApiParam("物料编号")
private String partNo;
@Column(name = "BIN位代码")
@Column(name = "BIN_NO")
@ApiParam("物料编号")
private String binNo;

Loading…
Cancel
Save