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 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 BusinessBaseSamplePageReqVO extends PageParam {

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

    @Schema(description = "样品大类名称", example = "张三")
    private String baseSampleName;

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

    @Schema(description = "主样配置ID", example = "3221")
    private Long configBaseSampleId;

    @Schema(description = "主样类型ID,字典表：【T_DIC_BSN】结算样、抽查样、委检样", example = "32376")
    private Long dictionaryBusinessId;

    @Schema(description = "样品生成时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] sampleTime;

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

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

    @Schema(description = "样品流程配置ID", example = "30581")
    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 = "样品状态,【字典】【jy_sample_status】normal-正常、isolation-隔离、void-作废", example = "1")
    private String sampleStatus;

    @Schema(description = "操作人")
    private String operator;

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

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

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

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

}