【MES_校验是否换膜并推送换模信号 】

yun-zuoyi
陈思洁 5 years ago
parent 22788f1c44
commit 310bf49af6

@ -3025,4 +3025,76 @@ public class MesPcnEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum FINISH_FLAG {
FALSE(0, "未完成"),
TRUE(1, "完成");
private int value;
private String description;
FINISH_FLAG(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;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum HM_FLAG {
NOT_FILM_EXCHANGE(0, "不需换模"),
FILM_EXCHANGE(1, "需换模");
private int value;
private String description;
HM_FLAG(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;
}
}
}

@ -120,7 +120,11 @@ public class MesStationBom extends BaseBean implements Serializable {
@Transient
@ApiParam("是否扫描")
private Boolean isScan;
private Boolean isScan = false;
@Transient
@ApiParam("半成品条码")
private String halfProductSn;
public double getQtyVal() {
return this.qty == null ? 0.0d : this.qty;

Loading…
Cancel
Save