扭矩二合一查询关键件清单逻辑优化--目前根据 队列主表,队列明细表,车型散件配置清单,物料信息表。加上条件【一百位条码】,年度型相同,车型相同 内联查出所有的关键件零件——>查询车型散件配置清单中的零件信息

工位监控逻辑修改:产线添加工位监控模式字段,为空或10执行之前逻辑,为20时不需要查询工单信息,后面逻辑不变
yun-zuoyi
宋军超 5 years ago
parent 31c3fcd868
commit 076c6c1b4f

@ -4492,4 +4492,50 @@ public class MesPcnEnumUtil {
}
}
/**
* 10=20=
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WORK_CENTER_MONITOR_TYPE {
ORDER_WORK(10, "工单作业"),
STANDARD_WORK(20, "标准作业");
private int value;
private String description;
WORK_CENTER_MONITOR_TYPE(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;
}
public static Integer descriptionOfValue(String description) {
Integer tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(description)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
}

@ -66,6 +66,11 @@ public class MesWorkCenter extends BaseBean implements Serializable {
@ApiParam("条码生成模式")
private Integer generateType;
// 10=工单作业20=标准作业
@Column(name = "MONITOR_TYPE")
@ApiParam("工位监控模式")
private Integer monitorType;
@Transient
@ApiParam(value = "子集列表")
private List<MesWorkCell> childTreeList;

Loading…
Cancel
Save