package cn.iocoder.yudao.module.pms.controller.admin.qhse.jsa.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_JSA工作安全分析新增/修改 Request VO")
@Data
public class QhseJsaSaveReqVO {

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

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

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

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

    @Schema(description = "工作任务", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "工作任务不能为空")
    private String jobTask;

    @Schema(description = "工作地点")
    private String jobAddress;

    @Schema(description = "附件", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "附件不能为空")
    private String jsaFile;

    @Schema(description = "工作负责人")
    private String jobDuty;

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

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

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

}