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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 班组判定检测项目数据业务新增/修改 Request VO")
@Data
public class BusinessSubParentSampleAssessmentProjectSaveReqVO {

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

    @Schema(description = "样品分样ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "23188")
    @NotNull(message = "样品分样ID不能为空")
    private Long businessSubParentSampleId;

    @Schema(description = "检测项目ID,字典表【T_DIC_PRJ】", requiredMode = Schema.RequiredMode.REQUIRED, example = "17642")
    @NotNull(message = "检测项目ID,字典表【T_DIC_PRJ】不能为空")
    private Long dictionaryProjectId;

    @Schema(description = "检测方法分析项目配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "7653")
    @NotNull(message = "检测方法分析项目配置ID不能为空")
    private Long configAssayMethodProjectId;

    @Schema(description = "检测方法配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "16271")
    @NotNull(message = "检测方法配置ID不能为空")
    private Long configAssayMethodId;

    @Schema(description = "用途,ingredient-配料、report-报出、ingredient_report-配料及报出")
    private String usage;

    @Schema(description = "符号,=、>、<、等")
    private String symbol;

    @Schema(description = "任务类型,【字典】【jy_sample_task_type】常规、抽查...", example = "2")
    private String taskType;

    @Schema(description = "分析类型,【字典】【jy_sample_assay_type】单杯-single_cup、双杯-double_cup、平行-single_parallel...", example = "1")
    private String assayType;

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

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

    @Schema(description = "有效数字位")
    private Integer effectiveDigit;

    @Schema(description = "判定值")
    private String assessmentValue;

    @Schema(description = "判定状态，in_progress-进行中 normal-正常，exceeds_tolerance-超差", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "判定状态，in_progress-进行中 normal-正常，exceeds_tolerance-超差不能为空")
    private String assessmentStatus;

    @Schema(description = "方法检出下限值")
    private String minimumLimitValue;

    @Schema(description = "是否已上报", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否已上报不能为空")
    private Integer isReported;

    @Schema(description = "上报人", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "上报人不能为空")
    private String reporter;

    @Schema(description = "上报时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "上报时间不能为空")
    private LocalDateTime reportTime;

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

    @Schema(description = "乐观锁", requiredMode = Schema.RequiredMode.REQUIRED, example = "16999")
    @NotNull(message = "乐观锁不能为空")
    private Integer updateCount;

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

}