package com.zt.plat.module.qms.business.config.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 ConfigQCSampleMethodParameterPageReqVO extends PageParam {

    @Schema(description = "检测方法与质控样类型配置ID", example = "28109")
    private Long configQCSampleMethodId;

    @Schema(description = "参数ID,字典表【T_DIC_PRM】", example = "29135")
    private Long dictionaryParameterId;

    @Schema(description = "参数名称", example = "李四")
    private String parameterName;

    @Schema(description = "参数简称", example = "李四")
    private String shortName;

    @Schema(description = "参数序号")
    private Integer no;

    @Schema(description = "键值")
    private String key;

    @Schema(description = "单位ID,UNT表", example = "31081")
    private Long unitId;

    @Schema(description = "单位")
    private String unit;

    @Schema(description = "填写方式,字典表【T_DIC_BSN】，keyboard-人工数字键盘录入，input-人工文本录入,collect-天平采集,calculate-计算")
    private String fillingWay;

    @Schema(description = "数据类型,【字典】【jy_sample_data_type】字符串，整数，小数,日期，时间", example = "1")
    private String dataType;

    @Schema(description = "小数位")
    private Integer decimalPosition;

    @Schema(description = "默认值")
    private String defaultValue;

    @Schema(description = "是否允许为空")
    private Integer isNull;

    @Schema(description = "计算公式")
    private String formula;

    @Schema(description = "参数分组_ID")
    private Long dictionaryBusinessId;

    @Schema(description = "参数分组_Key")
    private String dictionaryBusinessKey;

    @Schema(description = "pc界面是否显示")
    private Integer isShow;

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

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

}