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

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

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

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

    @Schema(description = "子样配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19843")
//    @NotNull(message = "子样配置ID不能为空")
    private Long configSubSampleId;

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

    @Schema(description = "库位信息ID", example = "5479")
    private Long configWarehouseLocationInfomationId;

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

    @Schema(description = "组ID,如果是委托创建的，则组ID和样品分样ID一致", example = "16918")
    private String groupId;

    @Schema(description = "批次编号,西南铜的产品批号")
    private String batchCode;

    @Schema(description = "双杯样标识,针对双杯样标记")
    private String dualFlag;

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

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

    @Schema(description = "分析编号")
    private String sampleAssayCode;

    @Schema(description = "归库编号")
    private String sampleReturnCode;

    @Schema(description = "是否已经生成归库编号,1-已生成，0-未生成")
    private Integer isGenerateReturnCode;

    @Schema(description = "是否称重,1-启用，0-不启用", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "是否称重,1-启用，0-不启用不能为空")
    private Integer isWeighing;

    @Schema(description = "末次重量,末次样品重量")
    private BigDecimal lastSampleWeight;

    @Schema(description = "末次称重天平编号")
    private String lastBalanceCode;

    @Schema(description = "样品流程配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15413")
//    @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 = "下一步样品流程节点名称", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotEmpty(message = "下一步样品流程节点名称不能为空")
    private String nextSampleFlowNode;

    @Schema(description = "是否物料检测标准登记,0-否，1-是")
    private Integer isMaterialAssayStandard;

    @Schema(description = "分析级别")
    private Integer assayLevel;

    @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 = "分析人")
    private String assayOperator;

    @Schema(description = "是否已分配任务", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "是否已分配任务不能为空")
    private Integer isAssignTasked;

    @Schema(description = "分配任务时间")
    private LocalDateTime assignTaskTime;

    @Schema(description = "是否已上报", requiredMode = Schema.RequiredMode.REQUIRED)
//    @NotNull(message = "是否已上报不能为空")
    private Integer isReported;

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

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

    @Schema(description = "归库时间")
    private LocalDateTime returnTime;

    @Schema(description = "归库状态,【字典】【jy_sample_return_status】待归库、已归库、已调拨、已下架、待销毁、已销毁", example = "2")
    private String returnStatus;

    @Schema(description = "调拨状态")
    private String dispatchStatus;

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

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

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

    @Schema(description = "分析元素备注")
    private String analysisRemark;

    @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 = "28696")
    private Integer updateCount;

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

    //============================扩展属性===============================
    @Schema(description = "库位编码")
    private String warehouseLocationCode;



}