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

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

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 收发货规则 Response VO")
@Data
public class ContractReceiveSendRespDTO {
    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26349")
    private Long id;

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

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

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

    @Schema(description = "元素名称", example = "张三")
    private String elementName;

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

    @Schema(description = "类型(字典:CONTRACT_RECEIVING_SHIPPING_TYPE_RULES)", example = "2")
    private String type;

    @Schema(description = "规则(字典:CONTRACT_RECEIVING_SHIPPING_ALLOW_RULES)")
    private String rule;

    @Schema(description = "符号(字典:CONTRACT_RECEIVING_SHIPPING_SYMBOL_RULES)")
    private String rangeWay;

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

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

    @Schema(description = "合同id", example = "22162")
    private Long contractId;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime createTime;
}
