yun-zuoyi
刘敏 6 years ago
commit 6f87b97721

@ -12,6 +12,44 @@ import com.fasterxml.jackson.annotation.JsonFormat;
public class MesEnumUtil {
/**
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_STEP_TYPE {
COMMON_STEP("10", "公用工步"),
JIT_STEP("20", "JIT工步"),
WORK_ORDER_STEP("30", "工单工步"),
BACK_STEP("40", "后台工步");
private String value;
private String description;
MES_STEP_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.equals(val) ) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
* mes
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)

@ -46,9 +46,9 @@ public class WmsMessageStyleModel implements Serializable {
this.message = message;
if (actQty == 0) {//未处理
this.odStatus = WmsEnumUtil.MASTER_ORDER_STATUS.CREATE.getValue();
} else if (actQty > 0) {
} else if (transQty > actQty) {//处理中
this.odStatus = WmsEnumUtil.MASTER_ORDER_STATUS.RECEIPT.getValue();
} else if (actQty == transQty) {
} else if (actQty == transQty) {//处理完成
this.odStatus = WmsEnumUtil.MASTER_ORDER_STATUS.RECEIPT_FINISH.getValue();
}
}

Loading…
Cancel
Save