package cn.iocoder.yudao.module.pms.controller.admin.qhse.ptw.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - QHSE_PTW作业许可新增/修改 Request VO")
@Data
public class QhsePtwSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "19898")
    private Long id;

    @Schema(description = "jsa编号")
    private String ptwNo;

    @Schema(description = "时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "时间不能为空")
    private LocalDateTime ptwTime;

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "序号不能为空")
    private String ptwXh;

    @Schema(description = "作业票类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "作业票类型不能为空")
    private String ptwType;

    @Schema(description = "作业分级(特级一级二级)")
    private String ptwGrade;

    @Schema(description = "作业地点")
    private String workLocation;

    @Schema(description = "作业内容")
    private String workContent;

    @Schema(description = "作业人员", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "作业人员不能为空")
    private String workPerson;

    @Schema(description = "监护人", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "监护人不能为空")
    private String guardian;

    @Schema(description = "作业负责人", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "作业负责人不能为空")
    private String workDuty;

    @Schema(description = "jsa主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "22912")
    @NotNull(message = "jsa主键id不能为空")
    private Long jsaId;

    @Schema(description = "部门id", requiredMode = Schema.RequiredMode.REQUIRED, example = "821")
    @NotNull(message = "部门id不能为空")
    private Long deptId;

    @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
//    @NotEmpty(message = "单位不能为空")
    private String deptName;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "附件")
    private String file;

}