Merge branch 'dev' into test

yun-zuoyi
jenkins 6 years ago
commit 577e1372ab

@ -2928,4 +2928,38 @@ public class WmsEnumUtil {
return value;
}
}
/**
* 10=20=
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WMS_STOCK_TYPE {
SOURCE(10, "实物条码"), TARGET(20, "虚拟条码");
private int value;
private String description;
WMS_STOCK_TYPE(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;
}
}
}

@ -109,9 +109,8 @@ public class WmsStockSn extends BaseBean {
private String unit;
@Column(name = "QTY")
@ColumnDefault("0")
@ApiParam(value = "数量", example = "0")
private Double qty;
private Double qty = 0d;
/**
* :10=,20=,30=
@ -155,6 +154,10 @@ public class WmsStockSn extends BaseBean {
@ApiParam(value = "工作中心代码")
private String workCenterCode;
@Column(name = "SN_TYPE")
@ApiParam(value = "条码类型", example = "10")
private Integer snType = 10;
@ApiParam(value = "仓库名称")
@Transient
public String whNameRdd;

Loading…
Cancel
Save