添加索引 脚本表更新

yun-zuoyi
wynne1005 5 years ago
parent 05fa7dba04
commit 5fad38392e

@ -4585,4 +4585,23 @@ public class MesPcnEnumUtil {
}
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PHOTO_EXTRACT_STATUS {
NEED_SYNC_DATA(10, "待同步数据"),
ALREADY_SYNC_DATA(20, "已同步数据");
private int value;
private String description;
PHOTO_EXTRACT_STATUS(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
}
}

@ -14,6 +14,7 @@ import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import java.io.Serializable;
@ -29,7 +30,9 @@ import java.io.Serializable;
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_BOM")
@Table(name = "MES_BOM", indexes = {
@Index(columnList = "PART_NO")
})
@Api("BOM清单")
public class MesBom extends BaseBean implements Serializable {
private static final long serialVersionUID = 6781011059554785782L;

@ -10,10 +10,7 @@ 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;
import javax.persistence.Transient;
import javax.persistence.*;
import java.io.Serializable;
import java.util.List;
@ -29,7 +26,10 @@ import java.util.List;
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "MES_PLC")
@Table(name = "MES_PLC", indexes = {
@Index(columnList = "PLC_CODE"),
@Index(columnList = "TAG_ADDRESS")
})
@Api("PLC配置表")
public class MesPlc extends BaseBean implements Serializable {
private static final long serialVersionUID = -7172265186837551268L;

@ -52,7 +52,7 @@ public class MesQueueJitActual extends BaseBean implements Serializable {
@Column(name = "SEQ")
@ApiParam("排序号")
private String seq;
private Double seq;
@Column(name = "STATUS")
@ApiParam("状态")

@ -22,7 +22,7 @@ import javax.persistence.*;
@DynamicUpdate
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table(name = "SCRIPT_PERSISTENCE", indexes = {
@Table(name = "MES_SCRIPT_PERSISTENCE", indexes = {
@Index(columnList = "SCRIPT_NO"),
@Index(columnList = "ORGANIZE_CODE")
})

@ -22,7 +22,7 @@ import javax.persistence.*;
@DynamicUpdate
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table(name = "SCRIPT_PERSISTENCE_HISTORY")
@Table(name = "MES_SCRIPT_PERSISTENCE_HISTORY")
@Api("系统动态脚本")
public class EngineScriptPersistenceHistory extends BaseBean {

Loading…
Cancel
Save