盘点 按照盘点差异类型汇总

yun-zuoyi
曾贞一 6 years ago
parent 1b30b927ce
commit ce70994a57

@ -3189,4 +3189,57 @@ public class WmsEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum INVENTORY_DIFFERENCE_TYPE {
INVENTORY_FLAT(10, "INVENTORY_FLAT", "盘平"),
INVENTORY_LOSSES(20, "INVENTORY_LOSSES", "盘亏"),
INVENTORY_WIN(30, "INVENTORY_WIN", "盘赢");
private int value;
private String code;
private String description;
INVENTORY_DIFFERENCE_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public String getCode() {
return code;
}
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;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
}

@ -116,6 +116,13 @@ public class WmsCSOrderDetails extends BaseBean {
@ApiParam("源单位")
public String srcUnit;
/**
* 102030
*/
@Transient
@ApiParam("差异类型")
public String differenceType;
public Double getQty() {
return this.qty == null ? 0 : this.qty;
}

Loading…
Cancel
Save