【物料基础信息增加【贵重物料】属性,领料上线流程根据此属性判断是否需要扫描目标库位

】bug1299
yun-zuoyi
puxiao.liao 6 years ago
parent 519d985838
commit 3bfb0995d5

@ -3023,6 +3023,8 @@ public class WmsEnumUtil {
}
}
/**
*
*/
@ -4565,4 +4567,39 @@ public class WmsEnumUtil {
}
}
/**
*
* 2
*/
public enum IS_VALUABLE {
TRUE(1, "贵重物料"), FALSE(2, "非贵重物料");
private int value;
private String description;
IS_VALUABLE(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;
}
}
}

@ -170,6 +170,11 @@ public class WmsPart extends BaseBean {
@ApiParam(value = "待质检比例", example = "1")
private Double proportion;
@Column(name = "IS_VALUABLE", columnDefinition = "int default 2")
@ApiParam(value = "贵重物料")
@AnnoOutputColumn(refClass = WmsEnumUtil.IS_VALUABLE.class, refForeignKey = "value", value = "description")
private Integer isValuable;
@Transient
@ApiParam("总数量")
private Double qty;

Loading…
Cancel
Save