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 BusinessBaseSampleSaveReqVO {

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

    @Schema(description = "样品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "样品名称不能为空")
    private String sampleName;

    @Schema(description = "样品大类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "样品大类名称不能为空")
    private String baseSampleName;

    @Schema(description = "样品编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "样品编号不能为空")
    private String sampleCode;

    @Schema(description = "主样配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3221")
    @NotNull(message = "主样配置ID不能为空")
    private Long configBaseSampleId;

    @Schema(description = "主样类型ID,字典表：【T_DIC_BSN】结算样、抽查样、委检样", requiredMode = Schema.RequiredMode.REQUIRED, example = "32376")
    @NotNull(message = "主样类型ID,字典表：【T_DIC_BSN】结算样、抽查样、委检样不能为空")
    private Long dictionaryBusinessId;

    @Schema(description = "样品生成时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "样品生成时间不能为空")
    private LocalDateTime sampleTime;

    @Schema(description = "打印次数", requiredMode = Schema.RequiredMode.REQUIRED, example = "31445")
    @NotNull(message = "打印次数不能为空")
    private Integer printCount;

    @Schema(description = "末次打印时间")
    private LocalDateTime printLastTime;

    @Schema(description = "样品流程配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30581")
    @NotNull(message = "样品流程配置ID不能为空")
    private Long configSampleFlowId;

    @Schema(description = "样品流程节点KEY", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "样品流程节点KEY不能为空")
    private String sampleFlowNodeKey;

    @Schema(description = "样品流程节点时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "样品流程节点时间不能为空")
    private LocalDateTime sampleFlowNodeTime;

    @Schema(description = "样品状态,【字典】【jy_sample_status】normal-正常、isolation-隔离、void-作废", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "样品状态,【字典】【jy_sample_status】normal-正常、isolation-隔离、void-作废不能为空")
    private String sampleStatus;

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

    @Schema(description = "所属部门", requiredMode = Schema.RequiredMode.REQUIRED)
    private String systemDepartmentCode;

    @Schema(description = "乐观锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "24886")
    private Integer updateCount;

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

}