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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 检测参数字典 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DictionaryParameterRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23180")
    @ExcelProperty("ID")
    private Long id;

    @Schema(description = "参数序号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("参数序号")
    private Integer no;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @ExcelProperty("名称")
    private String name;

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

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

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

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

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

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("排序")
    private Integer sort;

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

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

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

    @Schema(description = "所属部门", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("所属部门")
    private String systemDepartmentCode;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

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

}