【需求:1221,导入】

yun-zuoyi
王杰 6 years ago
parent 04009f02e0
commit 99b66e459d

@ -1308,7 +1308,7 @@ public class MesEnumUtil {
MES_SHIFT(180, "班次"),
MES_SHIFT_GROUP(190, "班组"),
MES_WORK_CELL_PARAM_CFG(200, "工作单元参数配置"),
MES_PROCESS_BOM(210, "工序BOM表");
MES_STATION_BOM(210, "工位BOM表");
private int value;
private String description;
@ -1461,10 +1461,10 @@ public class MesEnumUtil {
}
/**
* mes
* mes Bom
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_IS_REPEAT {
public enum MES_STATION_BOM_IS_REPEAT {
REPEATABLE(1, "可重复"),
NOT_REPEAT(2, "不可重复");
@ -1472,7 +1472,7 @@ public class MesEnumUtil {
private int value;
private String description;
MES_IS_REPEAT(int value, String description) {
MES_STATION_BOM_IS_REPEAT(int value, String description) {
this.value = value;
this.description = description;
}
@ -1486,8 +1486,8 @@ public class MesEnumUtil {
}
// 根据value返回枚举类型,主要在switch中使用
public static MES_IS_REPEAT getByValue(int value) {
for (MES_IS_REPEAT mesInsertExcel : values()) {
public static MES_STATION_BOM_IS_REPEAT getByValue(int value) {
for (MES_STATION_BOM_IS_REPEAT mesInsertExcel : values()) {
if (mesInsertExcel.getValue() == value) {
return mesInsertExcel;
}
@ -1506,6 +1506,157 @@ public class MesEnumUtil {
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;
}
}
/**
* mes Bom
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_STATION_BOM_IS_CHECK {
REPEATABLE(1, "是"),
NOT_REPEAT(2, "否");
private int value;
private String description;
MES_STATION_BOM_IS_CHECK(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;
}
}
/**
* mes Bom
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_STATION_BOM_IS_FEED {
REPEATABLE(1, "是"),
NOT_REPEAT(2, "否");
private int value;
private String description;
MES_STATION_BOM_IS_FEED(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;
}
}
/**
* mes Bom
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_STATION_BOM_IS_BIND_KEY {
REPEATABLE(1, "是"),
NOT_REPEAT(2, "否");
private int value;
private String description;
MES_STATION_BOM_IS_BIND_KEY(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;
}
}
/**

@ -33,6 +33,8 @@ public class RequestModel {
private Integer destStatus; // 目的状态
private List<String> orderNoList;//工单编号
public RequestModel(List<MesQueueOrder> queueOrderList, Double currentSeq, Double nextSeq) {
this.queueOrderList = queueOrderList;
this.currentSeq = currentSeq;
@ -101,6 +103,14 @@ public class RequestModel {
this.queueOrderList = queueOrderList;
}
public void setOrderNoList(List<String> orderNoList) {
this.orderNoList = orderNoList;
}
public List<String> getOrderNoList() {
return orderNoList;
}
public Double getCurrentSeq() {
return currentSeq == null ? 0.0d : currentSeq;
}

@ -16,7 +16,7 @@ import javax.persistence.Table;
import javax.persistence.Transient;
/**
* @Description :
* @Description :
* @Reference :
* @Author : jack.jia
* @CreateDate : 2019-04-02
@ -28,7 +28,7 @@ import javax.persistence.Transient;
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_STATION_BOM")
@Api("工物料清单")
@Api("工物料清单")
public class MesStationBom extends BaseBean {
@Column(name = "PART_NO")
@ApiParam("零件号")

@ -32,6 +32,10 @@ public class RequestModel {
private Integer destStatus; // 目的状态
private List<String> orderNoList;//工单编号
private List<ActionRequestBean> requestBeanList;//工单下达
public RequestModel(List<MesQueueOrder> queueOrderList, Double currentSeq, Double nextSeq) {
this.queueOrderList = queueOrderList;
this.currentSeq = currentSeq;
@ -84,6 +88,20 @@ public class RequestModel {
this.queueOrderList = queueOrderList;
}
public void setOrderNoList(List<String> orderNoList) {
this.orderNoList = orderNoList;
}
public List<String> getOrderNoList() {
return orderNoList;
}
public void setRequestBeanList(List<ActionRequestBean> requestBeanList) {
this.requestBeanList = requestBeanList;
}
public List<ActionRequestBean> getRequestBeanList() { return requestBeanList; }
public Double getCurrentSeq() {
return currentSeq == null ? 0.0d : currentSeq;
}

Loading…
Cancel
Save