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

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.zt.plat.framework.common.pojo.PageParam;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 子样业务分页 Request VO")
@Data
public class BusinessSubSampleReqVO  {

    @Schema(description = "样品主样ID", example = "10824")
    private Long businessBaseSampleId;

    @Schema(description = "样品分样ID", example = "31262")
    private Long businessSubParentSampleId;

    @Schema(description = "子样配置ID", example = "19843")
    private Long configSubSampleId;

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

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

    @Schema(description = "样品ID", example = "15518")
    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 = "样品名称", example = "张三")
    private String sampleName;

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

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

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

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

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

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

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

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

    @Schema(description = "样品流程节点KEY")
    private String sampleFlowNodeKey;

    @Schema(description = "样品流程节点时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] sampleFlowNodeTime;

    @Schema(description = "下一步样品流程节点名称")
    private String nextSampleFlowNode;

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

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

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

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

    @Schema(description = "是否已分配任务")
    private Integer isAssignTasked;

    @Schema(description = "分配任务时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] assignTaskTime;

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

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

    @Schema(description = "上报时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] reportTime;

    @Schema(description = "归库时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] returnTime;

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

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

    @Schema(description = "打印次数", example = "32651")
    private Integer returnCodePrintCount;

    @Schema(description = "末次打印时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] printLastTime;

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

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

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

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

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "乐观锁", example = "28696")
    private Integer updateCount;

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

    //=======================================扩展字段=======================================

	@Schema(description = "分析部门id")
    private Long assayDepartmentId;
	
	@Schema(description = "分析部门名称")
    private String assayDepartmentName;
	
	@Schema(description = "分析部门状态")
	private String assayDepartmentStatus;
	
    @Schema(description = "样品流程节点KEY列表")
    private List<String> sampleFlowNodeKeyList;
    
    @Schema(description = "库位编码")
    private String warehouseLocationCode;

    @Schema(description = "仓库编码")
    private String warehouseCode;

    //是否过滤已申请调拨的数据: 1-是， 其他值：否
    @Schema(description = "是否过滤已申请调拨的数据")
    private String hideDispatchData;


}