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

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

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

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

    @Schema(description = "分样子样ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17149")
    @NotNull(message = "分样子样ID不能为空")
    private Long businessSubSampleId;

    @Schema(description = "分析部门ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2493")
    @NotNull(message = "分析部门ID不能为空")
    private Long assayDepartmentId;

    @Schema(description = "分析部门名称", example = "赵六")
    private String assayDepartmentName;

    @Schema(description = "样品状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "样品状态不能为空")
    private String sampleStatus;

    @Schema(description = "是否送样")
    private Integer isSend;

    @Schema(description = "收样人")
    private String sampleReceiver;

    @Schema(description = "收样时间")
    private LocalDateTime sampleReceiveTime;

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

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

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

}