package com.zt.plat.module.qms.business.bus.controller.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 样品交接单业务新增/修改 Request VO")
@Data
public class BusinessSampleHandoverSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13208")
    private Long id;

    @Schema(description = "交接单编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "交接单编号不能为空")
    private String code;

    @Schema(description = "交接单名称", example = "芋艿")
    private String name;

    @Schema(description = "交接单模板ID", example = "29613")
    private Long configReportTemplateId;

    @Schema(description = "交接单模板key")
    private String configReportTemplateKey;

    @Schema(description = "样品流程配置ID", example = "9154")
    private Long configSampleFlowId;

    @Schema(description = "样品流程节点KEY")
    private String sampleFlowNodeKey;

    @Schema(description = "操作类型,【字典】【jy_sample_handover_biz type】归库、调拨、下架、销毁", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "操作类型,【字典】【jy_sample_handover_biz type】归库、调拨、下架、销毁不能为空")
    private String operationType;

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

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

    @Schema(description = "操作人ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "32492")
    @NotNull(message = "操作人ID不能为空")
    private Long operatorId;

    @Schema(description = "流程模型Key")
    private String modelKey;

    @Schema(description = "流程流水号")
    private String flowSerialNumber;

    @Schema(description = "所属部门")
    private String systemDepartmentCode;

    @Schema(description = "备注")
    private String remark;

}