更新质检项字典数据表
This commit is contained in:
parent
abfd819e5a
commit
2c815028fb
@ -7,37 +7,32 @@ import javax.persistence.*;
|
|||||||
* @Date: 2022/1/19 9:26
|
* @Date: 2022/1/19 9:26
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
@Table(name = "data_dict")
|
@Table(name = "qc_inspection_item_dict")
|
||||||
public class DataDict {
|
public class DataDict {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 主键id
|
* 索引
|
||||||
*/
|
*/
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "data_dict_seq_gen")
|
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "qc_inspection_item_dict_seq_gen")
|
||||||
@SequenceGenerator(name = "data_dict_seq_gen", sequenceName = "data_dict_id_seq",allocationSize = 1)
|
@SequenceGenerator(name = "qc_inspection_item_dict_seq_gen", sequenceName = "qc_inspection_item_dict_id_seq", allocationSize = 1)
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 中文名称
|
* 质检项代码
|
||||||
*/
|
|
||||||
@Column(length = 65, columnDefinition = "varchar(65)")
|
|
||||||
private String dictChineseName;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 英文变量值
|
|
||||||
*/
|
*/
|
||||||
@Column(length = 85, columnDefinition = "varchar(85)")
|
@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() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public DataDict(Integer id, String dictChineseName, String dictEnglishName) {
|
|
||||||
this.id = id;
|
|
||||||
this.dictChineseName = dictChineseName;
|
|
||||||
this.dictEnglishName = dictEnglishName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Integer getId() {
|
public Integer getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
@ -46,28 +41,25 @@ public class DataDict {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDictChineseName() {
|
public String getInspectionItemCode() {
|
||||||
return dictChineseName;
|
return inspectionItemCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDictChineseName(String dictChineseName) {
|
public void setInspectionItemCode(String inspectionItemCode) {
|
||||||
this.dictChineseName = dictChineseName;
|
this.inspectionItemCode = inspectionItemCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDictEnglishName() {
|
public String getInspectionItemName() {
|
||||||
return dictEnglishName;
|
return inspectionItemName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDictEnglishName(String dictEnglishName) {
|
public void setInspectionItemName(String inspectionItemName) {
|
||||||
this.dictEnglishName = dictEnglishName;
|
this.inspectionItemName = inspectionItemName;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "DataDict{" +
|
return "DataDict{" + "id=" + id + ", inspectionItemCode='" + inspectionItemCode + '\'' + ", inspectionItemName='" + inspectionItemName + '\'' + '}';
|
||||||
"id=" + id +
|
|
||||||
", dictChineseName='" + dictChineseName + '\'' +
|
|
||||||
", dictEnglishName='" + dictEnglishName + '\'' +
|
|
||||||
'}';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user