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

import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
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 ReportDocumentDataPageReqVO extends PageParam {

    @Schema(description = "报告ID", example = "13627")
    private Long mainId;

    @Schema(description = "原始数据ID", example = "19655")
    private Long sourceId;

    @Schema(description = "数据内容")
    private String documentContent;

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

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

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

    @Schema(description = "附加内容")
    private String externalContent;

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

    @Schema(description = "样品名称")
    private String sampleName;

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

    @Schema(description = "样品类型key")
    private String sampleTypeKey;

    @Schema(description = "委托样品名称")
    private String entrustSampleName;

    @Schema(description = "委托样品编号")
    private String entrustSampleCode;

    @Schema(description = "排序")
    private Integer sort;
}