package com.zt.plat.module.contractorder.api.vo.contract;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

@Schema(description = "管理后台 - 品位不计价规则新增/修改 Request VO")
@Data
public class NotSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "18545")
    private Long id;

    @Schema(description = "合同主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "5333")
    @NotNull(message = "合同主键不能为空")
    private Long contractId;

    @Schema(description = "金属元素编码")
    private String elementNumber;

    @Schema(description = "金属元素缩写")
    private String elementAbbreviation;

    @Schema(description = "金属元素名称", example = "王五")
    private String elementName;

    @Schema(description = "上限")
    private BigDecimal gradeUp;

    @Schema(description = "下限")
    private BigDecimal gradeDown;

    @Schema(description = "区间方式(字典：STLM_RNG_WY)")
    private String rangeWay;

    @Schema(description = "物料名称", example = "芋艿")
    private String materialName;

    @Schema(description = "物料编码")
    private String materialNumber;
}