diff --git a/src/main/java/com/xkrs/model/entity/DataDict.java b/src/main/java/com/xkrs/model/entity/DataDict.java index 0758159..78a363c 100644 --- a/src/main/java/com/xkrs/model/entity/DataDict.java +++ b/src/main/java/com/xkrs/model/entity/DataDict.java @@ -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 + '\'' + '}'; } + }