bug7940【7940 推荐入库-未按最近距离推荐】

yun-zuoyi
puxiao.liao 5 years ago
parent 7514f66953
commit f8405b87d9

@ -5301,4 +5301,44 @@ public class WmsEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum QAD_DOC_TYPE {
TYPE_S(10, "s","s"), TYPE_D(20, "d","d");
private int value;
private String code;
private String description;
public String getCode() {
return code;
}
QAD_DOC_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 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;
}
}
}
Loading…
Cancel
Save