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 java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

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

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

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

    @Schema(description = "样品流程配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "9154")
//    @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)
    @NotEmpty(message = "样品编号不能为空")
    private String sampleCode;

    @Schema(description = "样品重量")
    private BigDecimal sampleWeight;

    @Schema(description = "天平编号")
    private String balanceCode;

    @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 = "19708")
    @NotNull(message = "操作人ID不能为空")
    private Long operatorId;

    @Schema(description = "送样人", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "送样人不能为空")
    private String sendSampleOperator;

    @Schema(description = "收样人", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "收样人不能为空")
    private String receiveSampleOperator;

    @Schema(description = "上一个交接记录ID", example = "5605")
    private Long upSampleRecordId;

    @Schema(description = "下一个交接记录ID", example = "31634")
    private Long nextSampleRecordId;

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

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

}