是否散件枚举添加

yun-zuoyi
amy 6 years ago
parent 126f47ae33
commit ecdd1d45de

@ -1987,4 +1987,38 @@ public class WmsEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum IS_PART {
IS_ADJUST(1, "散件"), ADJUST(2, "非散件");
private int value;
private String description;
IS_PART(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
}

@ -145,6 +145,10 @@ public class WmsDocMovementDetails extends BaseBean {
private String actualLot;
@Transient
@ApiParam("实际数量")
private Double actualQty;
@Transient
@ApiParam("推荐批次")
private String recommondLot;
@ -152,5 +156,11 @@ public class WmsDocMovementDetails extends BaseBean {
@ApiParam("推荐库位")
private String recommondLocateNo;
@Transient
@ApiParam("前端表格编辑使用")
private Boolean isSet = false;
public Double getQty() {return qty == null ? 0L : this.qty.doubleValue(); }
public Double getOutQty() {return outQty == null ? 0L : this.outQty.doubleValue(); }
}

Loading…
Cancel
Save