自测修改

yun-zuoyi
wynne1005 5 years ago
parent 8ef3997038
commit 6b9d56f9e0

@ -3790,4 +3790,40 @@ public class MesPcnEnumUtil {
} }
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PRODUCE_ERROR_RECORD {
JUMP_PROCESS(10, "跳过工序"),
JUMP_STEP(20, "跳过工步"),
JUMP_STATE(30, "跳过状态点");
private int value;
private String description;
PRODUCE_ERROR_RECORD(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;
}
}
} }

@ -0,0 +1,67 @@
package cn.estsh.i3plus.pojo.mes.bean;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* @author Wynne.Lu
* @date 2020/5/28 14:32
* @desc
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_PRODUCE_ERROR_RECORD")
@Api("生产异常操作记录")
public class MesProduceErrorRecord extends BaseBean {
private static final long serialVersionUID = 209753108845613052L;
@Column(name = "ERROR_TYPE")
@ApiParam("异常类型 10:工序跳过 20:工步跳过")
private Integer errorType;
@Column(name = "SERIAL_NUMBER")
@ApiParam("过程条码")
private String serialNumber;
@Column(name = "PART_NO")
@ApiParam("物料号")
private String partNo;
@Column(name = "PART_NAME_RDD")
@ApiParam("物料名称")
private String partNameRdd;
@Column(name = "WORK_CENTER_CODE")
@ApiParam("产线代码")
private String workCenterCode;
@Column(name = "WORK_CELL_CODE")
@ApiParam("工位代码")
private String workCellCode;
@Column(name = "PROCESS_CODE")
@ApiParam("工序代码")
private String processCode;
@Column(name = "STEP_CODE")
@ApiParam("工步代码")
private String stepCode;
@Column(name = "STATUS_CODE")
@ApiParam("状态点代码")
private String statusCode;
}

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.mes.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.mes.bean.MesProduceErrorRecord;
/**
* @Description :IF_JIT
* @Reference :
* @Author : qianhuasheng
* @CreateDate : 2020-03-06 10:57
* @Modify:
**/
public interface MesProduceErrorRecordRepository extends BaseRepository<MesProduceErrorRecord, Long> {
}
Loading…
Cancel
Save