更新质检项字典数据表

This commit is contained in:
liuchengqian 2022-02-28 20:24:37 +08:00
parent abfd819e5a
commit 2c815028fb

View File

@ -7,37 +7,32 @@ import javax.persistence.*;
* @Date: 2022/1/19 9:26
*/
@Entity
@Table(name = "data_dict")
@Table(name = "qc_inspection_item_dict")
public class DataDict {
/**
* 主键id
* 索引
*/
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "data_dict_seq_gen")
@SequenceGenerator(name = "data_dict_seq_gen", sequenceName = "data_dict_id_seq",allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "qc_inspection_item_dict_seq_gen")
@SequenceGenerator(name = "qc_inspection_item_dict_seq_gen", sequenceName = "qc_inspection_item_dict_id_seq", allocationSize = 1)
private Integer id;
/**
* 中文名称
*/
@Column(length = 65, columnDefinition = "varchar(65)")
private String dictChineseName;
/**
* 英文变量值
* 质检项代码
*/
@Column(length = 85, columnDefinition = "varchar(85)")
private String dictEnglishName;
private String inspectionItemCode;
/**
* 质检项代码
*/
@Column(length = 85, columnDefinition = "varchar(85)")
private String inspectionItemName;
public DataDict() {
}
public DataDict(Integer id, String dictChineseName, String dictEnglishName) {
this.id = id;
this.dictChineseName = dictChineseName;
this.dictEnglishName = dictEnglishName;
}
public Integer getId() {
return id;
}
@ -46,28 +41,25 @@ public class DataDict {
this.id = id;
}
public String getDictChineseName() {
return dictChineseName;
public String getInspectionItemCode() {
return inspectionItemCode;
}
public void setDictChineseName(String dictChineseName) {
this.dictChineseName = dictChineseName;
public void setInspectionItemCode(String inspectionItemCode) {
this.inspectionItemCode = inspectionItemCode;
}
public String getDictEnglishName() {
return dictEnglishName;
public String getInspectionItemName() {
return inspectionItemName;
}
public void setDictEnglishName(String dictEnglishName) {
this.dictEnglishName = dictEnglishName;
public void setInspectionItemName(String inspectionItemName) {
this.inspectionItemName = inspectionItemName;
}
@Override
public String toString() {
return "DataDict{" +
"id=" + id +
", dictChineseName='" + dictChineseName + '\'' +
", dictEnglishName='" + dictEnglishName + '\'' +
'}';
return "DataDict{" + "id=" + id + ", inspectionItemCode='" + inspectionItemCode + '\'' + ", inspectionItemName='" + inspectionItemName + '\'' + '}';
}
}