Commit d047debe authored by hongguangwu's avatar hongguangwu

数据权限配置初始提交(增删改查)

parent af3734f7
......@@ -26,6 +26,8 @@ import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.LocalDate;
import java.time.LocalDateTime;
......@@ -58,6 +60,7 @@ public class TEmployeeInfo extends BaseEntity {
* 员工类型(字典值,0外包1派遣2代理)
*/
@Schema(description = "员工类型(字典值,0外包1派遣2代理)")
@NotNull( message = "员工类型不可为空")
@Max(value = 1, message = "员工类型不可超过1位")
private String empNatrue;
......@@ -65,14 +68,16 @@ public class TEmployeeInfo extends BaseEntity {
* 员工姓名
*/
@Schema(description = "员工姓名")
@Max(value = 20, message = "员工姓名不可超过20位")
@NotNull( message = "员工姓名不可为空")
@Size(max = 20, message = "员工姓名不可超过20位")
private String empName;
/**
* 身份证号码
*/
@Schema(description = "身份证号码")
@Max(value = 20, message = "身份证号码不可超过20位")
@NotNull( message = "身份证号码不可为空")
@Size(max = 20, message = "身份证号码不可超过20位")
private String empIdcard;
/**
......@@ -103,7 +108,7 @@ public class TEmployeeInfo extends BaseEntity {
* 年龄
*/
@Schema(description = "年龄")
@Max(value = 11, message = "年龄不可超过11位")
@Max(value = 200, message = "年龄不可超过200")
private Integer empAge;
/**
......@@ -122,21 +127,21 @@ public class TEmployeeInfo extends BaseEntity {
* 政治面貌
*/
@Schema(description = "政治面貌")
@Max(value = 32, message = "政治面貌不可超过32位")
@Size(max = 32, message = "政治面貌不可超过32位")
private String politicalStatus;
/**
* 邮箱
*/
@Schema(description = "邮箱")
@Max(value = 32, message = "邮箱不可超过32位")
@Size(max = 32, message = "邮箱不可超过32位")
private String empEmail;
/**
* 手机号码
*/
@Schema(description = "手机号码")
@Max(value = 11, message = "手机号码不可超过11位")
@Size(max = 11, message = "手机号码不可超过11位")
private String empPhone;
/**
......
......@@ -20,8 +20,8 @@ import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDate;
......@@ -48,28 +48,28 @@ public class EmployeeVO implements Serializable {
* 姓名
*/
@ExcelProperty(value = "姓名")
@Max(value = 20, message = "姓名不可超过20位")
@Size(max = 20, message = "姓名不可超过20位")
private String empName;
/**
* 身份证号
*/
@ExcelProperty(value = "身份证号")
@Max(value = 20, message = "身份证号不可超过20位")
@Size(max = 20, message = "身份证号不可超过20位")
private String empIdcard;
/**
* 项目编码
*/
@ExcelProperty(value = "项目编码")
@Max(value = 32, message = "项目编码不可超过32位")
@Size(max = 32, message = "项目编码不可超过32位")
private String deptNo;
/**
* 就职岗位
*/
@ExcelProperty(value = "就职岗位")
@Max(value = 50, message = "就职岗位不可超过50位")
@Size(max = 50, message = "就职岗位不可超过50位")
private String post;
/**
......@@ -88,35 +88,35 @@ public class EmployeeVO implements Serializable {
* 婚姻状况
*/
@ExcelProperty(value = "婚姻状况")
@Max(value = 32, message = "婚姻状况不可超过32位")
@Size(max = 32, message = "婚姻状况不可超过32位")
private String empMarriStatus;
/**
* 民族
*/
@ExcelProperty(value = "民族")
@Max(value = 32, message = "民族不可超过32位")
@Size(max = 32, message = "民族不可超过32位")
private String empNational;
/**
* 政治面貌
*/
@ExcelProperty(value = "政治面貌")
@Max(value = 32, message = "政治面貌不可超过32位")
@Size(max = 32, message = "政治面貌不可超过32位")
private String politicalStatus;
/**
* 手机号码
*/
@ExcelProperty(value = "手机号码")
@Max(value = 11, message = "手机号码不可超过11位")
@Size(max = 11, message = "手机号码不可超过11位")
private String empPhone;
/**
* 邮箱
*/
@ExcelProperty(value = "邮箱")
@Max(value = 32, message = "邮箱不可超过32位")
@Size(max = 32, message = "邮箱不可超过32位")
private String empEmail;
/**
......
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