package com.xisc.pm.domain.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.choerodon.mybatis.annotation.ModifyAudit;
import io.choerodon.mybatis.annotation.VersionAudit;
import io.choerodon.mybatis.domain.AuditDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;


import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;


/**
 * 余坯组板采用判定基准表(PmSlabScrapLenBt)实体类
 *
 * @author 纪文桃 wentao.ji01@hand-china.com
 * @since 2024-07-23 14:28:33
 */

@Getter
@Setter
@ApiModel("余坯组板采用判定基准表")
@VersionAudit
@ModifyAudit
@JsonInclude(value = JsonInclude.Include.NON_NULL)
@Table(name = "PM_SLAB_SCRAP_LEN_BT")
public class PmSlabScrapLenBt extends AuditDomain implements Serializable {
    private static final long serialVersionUID = -75754710064249589L;

    public static final String FIELD_PSSLB_ID = "psslbId";
    public static final String FIELD_SLAB_THICK_FROM = "slabThickFrom";
    public static final String FIELD_SLAB_THICK_TO = "slabThickTo";
    public static final String FIELD_SLAB_WIDTH_FROM = "slabWidthFrom";
    public static final String FIELD_SLAB_WIDTH_TO = "slabWidthTo";
    public static final String FIELD_SLAB_MIN_LEN = "slabMinLen";
    public static final String FIELD_SLAB_MAX_LEN = "slabMaxLen";
    public static final String FIELD_CAN_SCRAP_LEN = "canScrapLen";
    public static final String FIELD_ROLL_LINE_NO = "rollLineNo";
    public static final String FIELD_TENANT_ID = "tenantId";

    @ApiModelProperty("主键ID")
    @Id
    @GeneratedValue
    private Long psslbId;

    @ApiModelProperty(value = "板坯厚度起", required = true)
    @NotNull
    private BigDecimal slabThickFrom;

    @ApiModelProperty(value = "板坯厚度止", required = true)
    @NotNull
    private BigDecimal slabThickTo;

    @ApiModelProperty(value = "板坯宽度起", required = true)
    @NotNull
    private BigDecimal slabWidthFrom;

    @ApiModelProperty(value = "板坯宽度止", required = true)
    @NotNull
    private BigDecimal slabWidthTo;

    @ApiModelProperty(value = "板坯长度最小值", required = true)
    @NotNull
    private BigDecimal slabMinLen;

    @ApiModelProperty(value = "板坯长度最大值", required = true)
    @NotNull
    private BigDecimal slabMaxLen;

    @ApiModelProperty(value = "允许切废长度", required = true)
    @NotNull
    private BigDecimal canScrapLen;

    @ApiModelProperty(value = "轧制产线号", required = true)
    @NotNull
    private String rollLineNo;

    @ApiModelProperty(value = "租户ID", required = true)
    @NotNull
    private Long tenantId;


}
