修改字段

yun-zuoyi
王杰 6 years ago
parent 492367670b
commit c595d3f6b1

@ -3199,4 +3199,56 @@ public class MesEnumUtil {
}
}
/**
* MesWorkCenter
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WORK_CENTER_RUNNING_STATUS {
RUNNING("Y", "start", "开线"),
STOPPED("N", "stop", "停线");
private String value;
private String code;
private String description;
WORK_CENTER_RUNNING_STATUS(String value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public String getValue() {
return value;
}
public String getCode() {
return code;
}
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;
}
public static String valueOfCode(String val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value.equals(val)) {
tmp = values()[i].code;
}
}
return tmp;
}
}
}

@ -53,7 +53,7 @@ public class MesWorkCenter extends BaseBean {
@Column(name = "RUNNING_STATUS")
@ApiParam("运行状态")
private Integer runningStatus;
private String runningStatus;
@Transient
@ApiParam(value = "子集列表")

@ -1,6 +1,5 @@
package cn.estsh.i3plus.pojo.mes.model;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
@ -25,7 +24,7 @@ public class ProductBiModel {
private String areaCode;
@ApiParam("运行状态")
private Integer runningStatus;
private String runningStatus;
@ApiParam(value = "物料号")
private String partNo;

Loading…
Cancel
Save