yun-zuoyi
joke.wang 5 years ago
parent 7ca3b43bfe
commit 768e31e636

@ -6751,4 +6751,39 @@ public class MesEnumUtil {
return null;
}
}
/**
* BOM
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum BIND_PART_TYPE {
POSITIVE(10, "半成品"),
REVERSE_SIDE(20, "原材料");
private Integer value;
private String description;
BIND_PART_TYPE(Integer value, String description) {
this.value = value;
this.description = description;
}
public Integer getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(Integer value) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
tmp = values()[i].description;
}
}
return tmp;
}
}
}

@ -82,6 +82,14 @@ public class MesStationBom extends BaseBean implements Serializable {
@ApiParam(value = "匹配规则")
private Integer matchRule;
@Column(name = "BIND_PART_TYPE")
@ApiParam(value = "绑定物料类型")
private Integer bindPartType;
@Column(name = "FEED_WARNING_QTY")
@ApiParam(value = "投料预警值")
private Double feedWarningQty;
@Transient
@ApiParam("是否已绑定")
private Boolean isBind;

Loading…
Cancel
Save