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

import com.baomidou.mybatisplus.annotation.TableField;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.module.qms.core.aspect.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Set;

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

@Schema(description = "管理后台 - 报告类型配置分页 Request VO")
@Data
public class ReportDocumentTypePageReqVO extends PageParam {

    @Schema(description = "报表类型ID", example = "9447")
    private Long configReportTypeId;

    @Schema(description = "类型名称", example = "赵六")
    private String name;

    @Schema(description = "流程key")
    private String flowKey;

    @Schema(description = "报告模板key")
    private String reportKey;

    @Schema(description = "报告编号规则")
    private String codeRule;

    @Schema(description = "报告分类")
    private String documentType;

    @Schema(description = "权限")
    private Integer permission;

    @Schema(description = "样品数量", example = "30323")
    private Integer sampleCount;

    @Schema(description = "其他配置")
    private String customConfig;

    @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 Integer version;

    @Schema(description = "排序号")
    private Integer sortNo;

    @Schema(description = "是否最新版本")
    private Integer currentFlag;

    @Schema(description = "主id")
    private Long mainId;

    @Schema(description = "前端组件")
    private String pageComponent;

    @Schema(description = "前端组件（移动端）")
    private String pageComponentMobile;

    //===================扩展属性=====================
    @Schema(description = "查询时进行权限过滤")
    private String permissionFilterFlag;

    @Schema(description = "查询用-权限角色")
    private Set<Long> roleIds;

    @Schema(description = "查询用-源权限类型")
    private String srcPermissionType;

}