jsp计算bug优化

yun-zuoyi
joke.wang 5 years ago
parent 99e63fea8c
commit d33dae14dc

@ -4484,7 +4484,9 @@ public class MesEnumUtil {
public enum QUEUE_JIT_ACTUAL_STATUS {
CREATE(10, "创建"),
LANDED(20, "下达"),
CANCEL(30, "取消");
CANCEL(30, "取消"),
OFFLINE(40, "下线"),
SHIPMENT(50, "发运");
private int value;
private String description;

@ -5102,4 +5102,42 @@ public class MesPcnEnumUtil {
}
}
/**
* JIT
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum QUEUE_JIT_ACTUAL_STATUS {
CREATE(10, "创建"),
LANDED(20, "下达"),
CANCEL(30, "取消"),
OFFLINE(40, "下线"),
SHIPMENT(50, "发运");
private int value;
private String description;
QUEUE_JIT_ACTUAL_STATUS(int value, String description) {
this.value = value;
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;
}
}
}

@ -11,6 +11,7 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
/**
@ -58,4 +59,26 @@ public class MesQueueJitPlanDetail extends BaseBean implements Serializable {
@Column(name = "FORMULA_CONTENT")
@ApiParam("配方内容")
private String formulaContent;
@Transient
@ApiParam("工单类型")
private Integer woType;
@Transient
@ApiParam("子物料名称")
private String itemPartNo;
@Transient
@ApiParam("数量")
private long qty;
public MesQueueJitPlanDetail() {
}
public MesQueueJitPlanDetail(String partNo, String itemPartNo, long qty) {
this.partNo = partNo;
this.itemPartNo = itemPartNo;
this.qty = qty;
}
}

Loading…
Cancel
Save