This commit is contained in:
liuchengqian 2022-02-28 21:01:46 +08:00
parent bee89dd24a
commit 7e3f433e16
3 changed files with 29 additions and 22 deletions

View File

@ -25,7 +25,7 @@ public class DataDict {
private String inspectionItemCode; private String inspectionItemCode;
/** /**
* 质检项代码 * 质检项名称
*/ */
@Column(length = 85, columnDefinition = "varchar(85)") @Column(length = 85, columnDefinition = "varchar(85)")
private String inspectionItemName; private String inspectionItemName;

View File

@ -1,6 +1,7 @@
package com.xkrs.model.qo; package com.xkrs.model.qo;
import com.xkrs.model.validation.DataDictQoInsert; import com.xkrs.model.validation.DataDictQoInsert;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
/** /**
@ -10,30 +11,33 @@ import javax.validation.constraints.NotBlank;
public class DataDictQo { public class DataDictQo {
/** /**
* 中文名称 * 质检项代码
*/ */
@NotBlank(message = "{DataDict.dictChineseName.blank}",groups={DataDictQoInsert.class}) @NotBlank(message = "{DataDict.inspectionItemCode.blank}", groups = {DataDictQoInsert.class})
private String dictChineseName; private String inspectionItemCode;
/** /**
* 英文变量值 * 质检项名称
*/ */
@NotBlank(message = "{DataDict.dictEnglishName.blank}",groups={DataDictQoInsert.class}) @NotBlank(message = "{DataDict.inspectionItemName.blank}", groups = {DataDictQoInsert.class})
private String dictEnglishName; private String inspectionItemName;
public String getDictChineseName() { public DataDictQo() {
return dictChineseName;
} }
public void setDictChineseName(String dictChineseName) { public String getInspectionItemCode() {
this.dictChineseName = dictChineseName; return inspectionItemCode;
} }
public String getDictEnglishName() { public void setInspectionItemCode(String inspectionItemCode) {
return dictEnglishName; this.inspectionItemCode = inspectionItemCode;
} }
public void setDictEnglishName(String dictEnglishName) { public String getInspectionItemName() {
this.dictEnglishName = dictEnglishName; return inspectionItemName;
}
public void setInspectionItemName(String inspectionItemName) {
this.inspectionItemName = inspectionItemName;
} }
} }

View File

@ -16,8 +16,11 @@ public class DataDictUpdateQo {
/** /**
* 中文名称 * 中文名称
*/ */
@NotBlank(message = "{DataDict.dictChineseName.blank}",groups={DataDictUpdateQoUpdate.class}) @NotBlank(message = "{DataDict.inspectionItemName.blank}", groups = {DataDictUpdateQoUpdate.class})
private String dictChineseName; private String inspectionItemName;
public DataDictUpdateQo() {
}
public Integer getId() { public Integer getId() {
return id; return id;
@ -27,11 +30,11 @@ public class DataDictUpdateQo {
this.id = id; this.id = id;
} }
public String getDictChineseName() { public String getInspectionItemName() {
return dictChineseName; return inspectionItemName;
} }
public void setDictChineseName(String dictChineseName) { public void setInspectionItemName(String inspectionItemName) {
this.dictChineseName = dictChineseName; this.inspectionItemName = inspectionItemName;
} }
} }