From 2c815028fb0752e6e807c5fb4578a789dcc5f0d0 Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Mon, 28 Feb 2022 20:24:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=B4=A8=E6=A3=80=E9=A1=B9?= =?UTF-8?q?=E5=AD=97=E5=85=B8=E6=95=B0=E6=8D=AE=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xkrs/model/entity/DataDict.java | 54 ++++++++----------- 1 file changed, 23 insertions(+), 31 deletions(-) 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 + '\'' + '}'; } + }