xiaoyi
9 天以前 481d8165f26fc7e37f0e87f6444ac0340bb563a3
yudao-module-hrm/src/main/java/cn/iocoder/yudao/module/hrm/controller/admin/employee/vo/HrmEmployeeSaveReqVO.java
@@ -27,6 +27,12 @@
    @NotNull(message = "岗位不能为空")
    private Long postId;
    @Schema(description = "用工性质", example = "1")
    private Integer employmentType;
    @Schema(description = "所属班组ID", example = "1")
    private Long teamId;
    @Schema(description = "员工姓名", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "员工姓名不能为空")
    private String name;
@@ -43,6 +49,9 @@
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号码格式不正确")
    private String phone;
    @Schema(description = "初始密码(为空时读取系统参数 system.user.init-password)", example = "123456")
    private String password;
    @Schema(description = "邮箱", example = "zhangsan@example.com")
    @Email(message = "邮箱格式不正确")
    private String email;
@@ -52,6 +61,21 @@
            message = "身份证号格式不正确")
    private String idCard;
    @Schema(description = "民族", example = "汉族")
    private String nation;
    @Schema(description = "婚姻状态", example = "已婚")
    private String marriageStatus;
    @Schema(description = "年龄", example = "30")
    private Integer age;
    @Schema(description = "学历", example = "本科")
    private String education;
    @Schema(description = "政治面貌", example = "中共党员")
    private String politicalStatus;
    @Schema(description = "入职日期", requiredMode = Schema.RequiredMode.REQUIRED, example = "2020-03-01")
    @NotNull(message = "入职日期不能为空")
    private LocalDate hireDate;