package cn.lihongjie.coal.coalAnalysisHis.entity;

import cn.lihongjie.coal.base.entity.OrgCommonEntity;
import cn.lihongjie.coal.coalAnalysis.entity.CoalAnalysisEntity;
import cn.lihongjie.coal.coalInfo.entity.CoalInfoEntity;

import jakarta.persistence.Entity;
import jakarta.persistence.ManyToOne;
//import jakarta.validation.constraints.DecimalMin;

import lombok.Data;

import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.Comment;

@Data
@Entity

@jakarta.persistence.Table(indexes = @jakarta.persistence.Index(name ="idx_coal_analysis_his_org_id", columnList = "organization_id"))

public class CoalAnalysisHisEntity extends OrgCommonEntity {
    @ManyToOne
    @Comment("关联的煤源信息")
    private CoalInfoEntity coalInfo;


    @Comment("归档状态")
    @ColumnDefault("'0'")
    private String archiveStatus = "0";

    @ManyToOne
    @Comment("关联化验数据")
    private CoalAnalysisEntity src;

    @Comment("参数 1 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param1;

    @Comment("参数 2 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param2;

    @Comment("参数 3 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param3;

    @Comment("参数 4 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param4;

    @Comment("参数 5 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param5;

    @Comment("参数 6 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param6;

    @Comment("参数 7 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param7;

    @Comment("参数 8 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param8;

    @Comment("参数 9 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param9;

    @Comment("参数 10 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param10;

    @Comment("参数 11 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param11;

    @Comment("参数 12 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param12;

    @Comment("参数 13 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param13;

    @Comment("参数 14 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param14;

    @Comment("参数 15 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param15;

    @Comment("参数 16 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param16;

    @Comment("参数 17 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param17;

    @Comment("参数 18 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param18;

    @Comment("参数 19 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param19;

    @Comment("参数 20 ")
//    @DecimalMin(value = "0.1", inclusive = true, message = "参数不能小于0.1")
    private Double param20;
}