更改模块

yun-zuoyi
jessica.chen 7 years ago
parent c5109d7e93
commit 9b529bf438

@ -963,4 +963,112 @@ public class WmsEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum QC_INFO_TYPE {
FEED(1, "进料检验"), ONLINE(10, "在线检验"), EMDPRODUCT(30, "成品检验,"), SHIPMENTS(40, "出货检验,");
private int value;
private String description;
QC_INFO_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;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum QC_INFO_STATUS {
CREATE(1, "新建"),
FINISH(5, "待处理"),
FAIL(10, "已完成,"),
CLOSE(90, "已关闭,"),
CANCEL(91, "已取消,");
private int value;
private String description;
QC_INFO_STATUS(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;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum QC_ITEM_STATUS {
NORMAL(1, "正常"),
CANCELLATION(10, "行取消");
private int value;
private String description;
QC_ITEM_STATUS(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;
}
}
}

@ -37,8 +37,8 @@ public class WmsQCMaster extends BaseBean {
* FQC=,OQC=
*/
@Column(name="ORDER_TYPE")
@ApiParam("业务类型")
public String orderType;
@ApiParam(value = "业务类型", example = "0")
public Integer orderType;
/**
* :0=,5=,10=,90=,91=

@ -889,7 +889,7 @@ public class WmsHqlPack {
//单号
HqlPack.getStringLikerPack(wmsQCMaster.getOrderNo(), "orderNo", result);
//业务类型
HqlPack.getStringEqualPack(wmsQCMaster.getOrderType(), "orderType", result);
HqlPack.getNumEqualPack(wmsQCMaster.getOrderType(), "orderType", result);
//采购单号
HqlPack.getStringLikerPack(wmsQCMaster.getPoNo(), "poNo", result);
//ASN单号

Loading…
Cancel
Save