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 MaterialAssayStandardDetailPageReqVO extends PageParam {

    @Schema(description = "物料检测标准ID", example = "3494")
    private Long materialAssayStandardId;

    @Schema(description = "检测项目ID", example = "27840")
    private Long dictionaryProjectId;

    @Schema(description = "检测项目编码")
    private String dictionaryProjectCode;

    @Schema(description = "检测结果单位ID", example = "18156")
    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 = "检测分类,字典表【T_DIC_BSN】化学；仪器；外检")
    private String assayCategory;

    @Schema(description = "是否默认选择,委托时是否默认选择；1-是，0-否")
    private Integer isDefaultPick;

    @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 = "检测标准id列表")
    private List<Long> standardIdList;

    @Schema(description = "检测项名称")
    private String dictionaryProjectName;

    @Schema(description = "数据类型")
    private String dataTypeName;

    @Schema(description = "检测分类名称")
    private String assayCategoryName;
}