更新质检采集数据源表

This commit is contained in:
liuchengqian 2022-02-28 20:28:22 +08:00
parent 2c815028fb
commit 561aa12be6

View File

@ -7,71 +7,68 @@ import javax.persistence.*;
* @Date: 2022/1/19 14:08 * @Date: 2022/1/19 14:08
*/ */
@Entity @Entity
@Table(name = "data_source") @Table(name = "qc_inspection_data_source")
public class DataSource { public class DataSource {
/** /**
* 主键id * 主键id
*/ */
@Id @Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "data_source_seq_gen") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "qc_inspection_data_source_seq_gen")
@SequenceGenerator(name = "data_source_seq_gen", sequenceName = "data_source_id_seq",allocationSize = 1) @SequenceGenerator(name = "qc_inspection_data_source_seq_gen", sequenceName = "qc_inspection_data_source_id_seq", allocationSize = 1)
private Integer id; private Integer id;
/** /**
* 机种 * 批次号
*/
@Column(length = 32, columnDefinition = "varchar(32)")
private String dataModelNumber;
/**
* 成型批号
*/
@Column(length = 32, columnDefinition = "varchar(32)")
private String dataBatchNumber;
/**
* 机器
*/
@Column(length = 32, columnDefinition = "varchar(32)")
private String dataMachineCode;
/**
* 模具
*/
@Column(length = 32, columnDefinition = "varchar(32)")
private String productNumber;
/**
* 材料
*/
private String material;
/**
* 变量值
*/ */
@Column(length = 85, columnDefinition = "varchar(85)") @Column(length = 85, columnDefinition = "varchar(85)")
private String dataName; private String lotNo;
/** /**
* 监测的数值 * 批次号
*/ */
@Column(length = 85, columnDefinition = "varchar(85)") @Column(length = 85, columnDefinition = "varchar(85)")
private String numericalValue; private String lotNo;
/**
* 机器号
*/
@Column(length = 85, columnDefinition = "varchar(85)")
private String machineNo;
/**
* 物料号
*/
@Column(length = 85, columnDefinition = "varchar(85)")
private String materialNo;
/**
* 模具号
*/
@Column(length = 85, columnDefinition = "varchar(85)")
private String modelNo;
/**
* 零件号
*/
@Column(length = 85, columnDefinition = "varchar(85)")
private String partNo;
/**
* 检验项代码
*/
@Column(length = 85, columnDefinition = "varchar(85)")
private String inspectionItemCode;
/**
* 检验数值
*/
@Column(length = 85, columnDefinition = "varchar(85)")
private String inspectValue;
public DataSource() { public DataSource() {
} }
public DataSource(Integer id, String dataModelNumber, String dataBatchNumber, String dataMachineCode, String productNumber, String material, String dataName, String numericalValue) {
this.id = id;
this.dataModelNumber = dataModelNumber;
this.dataBatchNumber = dataBatchNumber;
this.dataMachineCode = dataMachineCode;
this.productNumber = productNumber;
this.material = material;
this.dataName = dataName;
this.numericalValue = numericalValue;
}
public Integer getId() { public Integer getId() {
return id; return id;
} }
@ -80,73 +77,64 @@ public class DataSource {
this.id = id; this.id = id;
} }
public String getDataModelNumber() { public String getLotNo() {
return dataModelNumber; return lotNo;
} }
public void setDataModelNumber(String dataModelNumber) { public void setLotNo(String lotNo) {
this.dataModelNumber = dataModelNumber; this.lotNo = lotNo;
} }
public String getDataBatchNumber() { public String getMachineNo() {
return dataBatchNumber; return machineNo;
} }
public void setDataBatchNumber(String dataBatchNumber) { public void setMachineNo(String machineNo) {
this.dataBatchNumber = dataBatchNumber; this.machineNo = machineNo;
} }
public String getDataMachineCode() { public String getMaterialNo() {
return dataMachineCode; return materialNo;
} }
public void setDataMachineCode(String dataMachineCode) { public void setMaterialNo(String materialNo) {
this.dataMachineCode = dataMachineCode; this.materialNo = materialNo;
} }
public String getProductNumber() { public String getModelNo() {
return productNumber; return modelNo;
} }
public void setProductNumber(String productNumber) { public void setModelNo(String modelNo) {
this.productNumber = productNumber; this.modelNo = modelNo;
} }
public String getMaterial() { public String getPartNo() {
return material; return partNo;
} }
public void setMaterial(String material) { public void setPartNo(String partNo) {
this.material = material; this.partNo = partNo;
} }
public String getDataName() { public String getInspectionItemCode() {
return dataName; return inspectionItemCode;
} }
public void setDataName(String dataName) { public void setInspectionItemCode(String inspectionItemCode) {
this.dataName = dataName; this.inspectionItemCode = inspectionItemCode;
} }
public String getNumericalValue() { public String getInspectValue() {
return numericalValue; return inspectValue;
} }
public void setNumericalValue(String numericalValue) { public void setInspectValue(String inspectValue) {
this.numericalValue = numericalValue; this.inspectValue = inspectValue;
} }
@Override @Override
public String toString() { public String toString() {
return "DataSource{" + return "DataSource{" + "id=" + id + ", lotNo='" + lotNo + '\'' + ", lotNo='" + lotNo + '\'' + ", machineNo='" + machineNo + '\'' + ", materialNo='" + materialNo + '\'' + ", modelNo='" + modelNo + '\'' + ", partNo='" + partNo + '\'' + ", inspectionItemCode='" + inspectionItemCode + '\'' + ", inspectValue='" + inspectValue + '\'' + '}';
"id=" + id +
", dataModelNumber='" + dataModelNumber + '\'' +
", dataBatchNumber='" + dataBatchNumber + '\'' +
", dataMachineCode='" + dataMachineCode + '\'' +
", productNumber='" + productNumber + '\'' +
", material='" + material + '\'' +
", dataName='" + dataName + '\'' +
", numericalValue='" + numericalValue + '\'' +
'}';
} }
} }