订单池枚举

yun-zuoyi
joke.wang 5 years ago
parent 7457e27180
commit 44e3d667b3

@ -6516,7 +6516,79 @@ public class MesEnumUtil {
public static String valueOfDescription(Integer value) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value.equals(value)) {
if (values()[i].value == value) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
* JIT
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum JIT_ORDER_CACHE_STATUS {
CREATE(10, "创建"),
COMPLETE(20, "完成"),
CANCEL(20, "取消");
private Integer value;
private String description;
JIT_ORDER_CACHE_STATUS(Integer value, String description) {
this.value = value;
this.description = description;
}
public Integer getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(Integer value) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
* JIT
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum JIT_LOCK_CACHE_STATUS {
CREATE(10, "创建"),
RELEASE(20, "下达"),
ONLINE_COMPLETE(20, "上线完成");
private Integer value;
private String description;
JIT_LOCK_CACHE_STATUS(Integer value, String description) {
this.value = value;
this.description = description;
}
public Integer getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(Integer value) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
tmp = values()[i].description;
}
}

@ -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;
/**
@ -45,4 +46,12 @@ public class MesJitIssueCfg extends BaseBean implements Serializable {
@Column(name = "CFG_TYPE")
@ApiParam("缓存类型")
private Integer cfgType;
@Transient
@ApiParam("当前JIT缓存数")
private Integer currentJitCacheNum;
@Transient
@ApiParam("其他工单数")
private Integer otherWorkNum = 0;
}

Loading…
Cancel
Save