更新pojo

yun-zuoyi
柯裕 6 years ago
parent 8822f4f22f
commit ce9cbe1198

@ -300,6 +300,54 @@ public class WmsEnumUtil {
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RC_ORDER_STATUS {
CREATE(10, "新建"),
RECEIPT(20, "收货中"),
RECEIPT_FINISH(30, "收货完成"),
CLOSED(40, "已关闭"),
CANCELLED(50, "已取消");
private int value;
private String description;
RC_ORDER_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;
}
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;
}
}
/**
* PO
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)

@ -23,4 +23,7 @@ public class TransSnModle extends BaseComponetsParam{
@ApiParam(value = "是否分组")
public int isGroup;
@ApiParam(value = "物料")
public String partNo;
}

@ -51,7 +51,7 @@ public class WmsStockSn extends BaseBean {
private String partNameRdd;
@Column(name = "LOT_NO")
@ApiParam("批次编码")
@ApiParam("收货日期(批次编码")
public String lotNo;
@Column(name = "DATE_CODE")

Loading…
Cancel
Save