Commit 0c7ac05f authored by huyuchen's avatar huyuchen

huych-入离职登记提交

parent 5d06204a
......@@ -54,7 +54,8 @@ public class EmployeeRegistrationVo extends RowIndex implements Serializable {
* 岗位
*/
@Length(max = 50, message = "岗位不能超过50个字符")
@ExcelAttribute(name = "岗位", maxLength = 50)
@NotBlank(message = "岗位不能为空")
@ExcelAttribute(name = "岗位", maxLength = 50, isNotEmpty = true, errorInfo = "岗位不能为空")
@Schema(description = "岗位")
@ExcelProperty("岗位")
private String position;
......@@ -62,7 +63,8 @@ public class EmployeeRegistrationVo extends RowIndex implements Serializable {
/**
* 反馈类型 1入职 2离职
*/
@ExcelAttribute(name = "登记类型", readConverterExp = "1=入职,2=离职")
@NotBlank(message = "登记类型不能为空")
@ExcelAttribute(name = "登记类型", readConverterExp = "1=入职,2=离职", isNotEmpty = true, errorInfo = "登记类型不能为空")
@Schema(description = "登记类型")
@ExcelProperty("登记类型")
private String feedbackType;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment