package com.zt.plat.module.qms.business.bus.controller.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 子样业务 Response VO")
@Data
@ExcelIgnoreUnannotated
public class BusinessSubSampleRespVO {

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

    @Schema(description = "样品主样ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10824")
    @ExcelProperty("样品主样ID")
    private Long businessBaseSampleId;

    @Schema(description = "样品分样ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31262")
    @ExcelProperty("样品分样ID")
    private Long businessSubParentSampleId;

    @Schema(description = "子样配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "19843")
    @ExcelProperty("子样配置ID")
    private Long configSubSampleId;

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

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

    @Schema(description = "样品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15518")
    @ExcelProperty("样品ID")
    private Long sampleId;

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

    @Schema(description = "样品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @ExcelProperty("样品名称")
    private String sampleName;

    @Schema(description = "样品编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("样品编号")
    private String sampleCode;

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

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

    @Schema(description = "是否称重,1-启用，0-不启用", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否称重,1-启用，0-不启用")
    private Integer isWeighing;

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

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

    @Schema(description = "样品流程配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15413")
    @ExcelProperty("样品流程配置ID")
    private Long configSampleFlowId;

    @Schema(description = "样品流程节点KEY", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("样品流程节点KEY")
    private String sampleFlowNodeKey;

    @Schema(description = "样品流程节点时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("样品流程节点时间")
    private LocalDateTime sampleFlowNodeTime;

    @Schema(description = "下一步样品流程节点名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("下一步样品流程节点名称")
    private String nextSampleFlowNode;

    @Schema(description = "样品状态,【字典】【jy_sample_status】normal-正常、isolation-隔离、void-作废", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("样品状态,【字典】【jy_sample_status】normal-正常、isolation-隔离、void-作废")
    private String sampleStatus;

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

    @Schema(description = "是否已分配任务", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否已分配任务")
    private Integer isAssignTasked;

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

    @Schema(description = "是否已上报", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否已上报")
    private Integer isReported;

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

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

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

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

    @Schema(description = "打印次数", requiredMode = Schema.RequiredMode.REQUIRED, example = "32651")
    @ExcelProperty("打印次数")
    private Integer returnCodePrintCount;

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

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

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

    @Schema(description = "是否启用,1-启用，0-不启用", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否启用,1-启用，0-不启用")
    private Integer isEnabled;

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

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

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

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

}