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

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Schema(description = "RPC 服务 - 价款结算条款 Response DTO")
@Data
public class FormulaRespDTO {

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "合同主键")
    private Long contractId;

    @Schema(description = "公式类型;单价/总价/水扣款/加工费")
    private String formulaType;

    @Schema(description = "公式")
    private String formulaCalculate;

    @Schema(description = "编码公式")
    private String numberFormula;

    @Schema(description = "物料名称")
    private String materialName;

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

    @Schema(description = "计算小数位")
    private Long decimalPoint;

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

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

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

    @Schema(description = "结算类型，多条使用逗号分隔（字典：PRCH_STLM_TP）")
    private String settlementType;

    @Schema(description = "基础系数配置")
    private List<CoefficientRespDTO> coefficients;

    @Schema(description = "品位等级价配置")
    private List<GradeRespDTO> grades;

    @Schema(description = "调整价配置")
    private List<DeductRespDTO> deducts;

    @Schema(description = "市场价配置")
    private List<PriceRespDTO> prices;
}
