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;
/**
* 质检项代码
* 质检项名称
*/
@Column(length = 85, columnDefinition = "varchar(85)")
private String inspectionItemName;

View File

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