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

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

    @Schema(description = "样品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28356")
    @NotNull(message = "样品ID不能为空")
    private Long sampleId;

    @Schema(description = "样品主样ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26456")
    @NotNull(message = "样品主样ID不能为空")
    private Long businessBaseSampleId;

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

    @Schema(description = "分样类型ID,字典表：【T_DIC_BSN】化学样、试金样、仪器样", requiredMode = Schema.RequiredMode.REQUIRED, example = "12061")
    @NotNull(message = "分样类型ID,字典表：【T_DIC_BSN】化学样、试金样、仪器样不能为空")
    private Long dictionaryBusinessId;

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

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

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

    @Schema(description = "子样归库码")
    private String subSampleReturnCode;

    @Schema(description = "上报人")
    private String reporter;

    @Schema(description = "上报时间")
    private LocalDateTime reportTime;

    @Schema(description = "审核流程code")
    private String auditFlowCode;

    @Schema(description = "超差标注", example = "1")
    private String assessmentStatus;

    @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 = "是否启用,1-启用，0-不启用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否启用,1-启用，0-不启用不能为空")
    private Integer isEnabled;

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

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

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

}