package com.sckw.product.model.vo.req;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * @desc: 最
 * @author: yzc
 * @date: 2023-07-31 17:38
 */
@Getter
@Setter
@ToString
public class MaxPurchaseNumParam {

    /**
     * 商品id
     */
    @NotNull(message = "商品id不能为空")
    private Long goodsId;

    /**
     * 成交单价
     */
    @NotNull(message = "成交单价不能为空")
    @DecimalMin(value = "0.00", message = "成交单价最小为零")
    private BigDecimal utilPrice;

    /**
     * 交易方式
     */
    private String trading;

    /**
     * 采购企业id
     */
    private Long procureEntId;

    /**
     * 供应企业id
     */
    private Long supplyEntId;
}
