|
|
|
@ -10,10 +10,7 @@ import org.hibernate.annotations.DynamicInsert;
|
|
|
|
|
import org.hibernate.annotations.DynamicUpdate;
|
|
|
|
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
|
|
|
|
|
|
|
|
import javax.persistence.Column;
|
|
|
|
|
import javax.persistence.Entity;
|
|
|
|
|
import javax.persistence.Index;
|
|
|
|
|
import javax.persistence.Table;
|
|
|
|
|
import javax.persistence.*;
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -33,11 +30,14 @@ import java.io.Serializable;
|
|
|
|
|
@Index(columnList = "KP_SN"),
|
|
|
|
|
@Index(columnList = "CREATE_DATE_TIME"),
|
|
|
|
|
@Index(columnList = "ITEM_PART_NO")
|
|
|
|
|
}, uniqueConstraints = {
|
|
|
|
|
@UniqueConstraint(columnNames = {"ORGANIZE_CODE", "SERIAL_NUMBER", "KP_SN"})
|
|
|
|
|
})
|
|
|
|
|
@Api("产品绑定记录表")
|
|
|
|
|
public class MesProdBindRecord extends BaseBean implements Serializable {
|
|
|
|
|
private static final long serialVersionUID = -6984193022328810942L;
|
|
|
|
|
@Column(name = "SERIAL_NUMBER")
|
|
|
|
|
// 联合唯一索引必须加:, nullable = false
|
|
|
|
|
@Column(name = "SERIAL_NUMBER", nullable = false)
|
|
|
|
|
@ApiParam(value = "产品条码")
|
|
|
|
|
private String serialNumber;
|
|
|
|
|
|
|
|
|
@ -65,7 +65,7 @@ public class MesProdBindRecord extends BaseBean implements Serializable {
|
|
|
|
|
@ApiParam("原材料零件号")
|
|
|
|
|
private String itemPartNo;
|
|
|
|
|
|
|
|
|
|
@Column(name = "KP_SN")
|
|
|
|
|
@Column(name = "KP_SN", nullable = false)
|
|
|
|
|
@ApiParam("原材料条码")
|
|
|
|
|
private String kpSn;
|
|
|
|
|
|
|
|
|
|