字段修改

yun-zuoyi
amy 7 years ago
parent 37008febab
commit 22d5ba1c0f

@ -213,4 +213,124 @@ public class WmsEnumUtil {
return tmp; return tmp;
} }
} }
/**
* ASN
*/
public enum ASN_ORDER_TYPE{
REG("REG","原物料采购"),SUB("SUB","委外采购"),TAR("TAR","多角贸易采购"),TAP("TAP","多角代采购");
private String value;
private String description;
ASN_ORDER_TYPE(String value, String description) {
this.value = value;
this.description = description;
}
public String getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
* ASN
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ASN_MASTER_ORDER_STATUS {
NORMAL(1, "N", "正常"),
CANCEL(2, "C", "行取消"),
RECEIPTED(3, "R", "已收货");
private int value;
private String code;
private String description;
private ASN_MASTER_ORDER_STATUS(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;
}
}
/**
*
*/
public enum IS_DELETED {
DELETED(1, "已删除"), INDELETED(2, "未删除");
private int value;
private String description;
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
IS_DELETED(int value, String description) {
this.value = value;
this.description = 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;
}
}
} }

@ -36,17 +36,17 @@ public class WmsASNMaster extends BaseBean {
* :REG=, * :REG=,
* SUB=,TAR=,TAP= * SUB=,TAR=,TAP=
*/ */
@Column(name="TYPE") @Column(name="ASN_TYPE")
@ApiParam("单据类型") @ApiParam("单据类型")
public String type; public String asnType;
/** /**
* :0=,10=,20=, * :0=,10=,20=,
* 30=,40=,90=,91= * 30=,40=,90=,91=
*/ */
@Column(name="STATUS") @Column(name="ASN_STATUS")
@ApiParam(value = "状态", example = "0") @ApiParam(value = "状态", example = "0")
public Integer status; public Integer asnStatus;
@Column(name="VENDOR_NO") @Column(name="VENDOR_NO")
@ApiParam("供应商编号") @ApiParam("供应商编号")

@ -67,13 +67,13 @@ public class WmsASNMasterDetails extends BaseBean {
/** /**
* :N=,C=,R= * :N=,C=,R=
*/ */
@Column(name="STATUS") @Column(name="ITEM_STATUS")
@ApiParam(value = "状态", example = "1") @ApiParam(value = "状态", example = "1")
public Integer status; public Integer itemStatus;
@Column(name="PACKAGE") @Column(name="PACKAGE")
@ApiParam("包装名称") @ApiParam("包装名称")
public String pageAge; public String packAge;
/** /**
* :0=,1= * :0=,1=

Loading…
Cancel
Save