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

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

    @Schema(description = "名称", example = "王五")
    private String name;

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

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

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

    @Schema(description = "数据类型,字典表【T_DIC_BSN】string-字符串，int-整数，decimal-小数,date-日期，datetime-时间", example = "2")
    private String dataType;

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

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

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

    @Schema(description = "填写方式,字典表【T_DIC_BSN】人工录入,天平采集,计算")
    private String fillingWay;

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

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

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

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

}