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

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

    @Schema(description = "设备编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "设备编号不能为空")
    private String deviceNo;

    @Schema(description = "荧光线名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "荧光线名称不能为空")
    private String lineName;

    @Schema(description = "荧光样品id", example = "13273")
    private String xRFSampleId;

    @Schema(description = "样品编号")
    private String sampleCode;

    @Schema(description = "样品名称", example = "李四")
    private String sampleName;

    @Schema(description = "样品时间")
    private LocalDateTime sampleTime;

    @Schema(description = "样品开始时间")
    private LocalDateTime sampleStartTime;

    @Schema(description = "样品结束时间")
    private LocalDateTime sampleEndTime;

    @Schema(description = "分析人")
    private String assayOperator;

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

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

    @Schema(description = "分样子样ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "13189")
    @NotNull(message = "分样子样ID不能为空")
    private Long businessSubSampleId;
    
    @Schema(description = "检测任务ID", example = "16505")
    private Long businessAssayTaskDataId;
    
    @Schema(description = "检测任务ID", example = "940")
    private Long businessQCManagementDataId;

    @Schema(description = "检测数据", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "检测数据不能为空")
    private String assayData;

    @Schema(description = "是否为检查创建数据")
    private Integer isCheckCreate;

    @Schema(description = "是否已匹配")
    private Integer isMatched;

    @Schema(description = "是否已上报")
    private Integer isReported;

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

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

    @Schema(description = "乐观锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "4171")
    @NotNull(message = "乐观锁不能为空")
    private Integer updateCount;

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

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

}