package com.czg.product.param;

import com.czg.validator.group.DefaultGroup;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 库存盘点入参
 *
 * @author Tankaikai tankaikai@aliyun.com
 * @since 1.0 2025-02-20
 */
@Data
public class ConsCheckStockParam implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 耗材id
     */
    @NotNull(message = "耗材id不能为空", groups = DefaultGroup.class)
    private Long conId;
    /**
     * 耗材名称
     */
    @NotBlank(message = "耗材名称不能为空", groups = DefaultGroup.class)
    private String conName;
    private String operator;

    /**
     * 账存数量
     */
    @NotNull(message = "账存数量不能为空", groups = DefaultGroup.class)
    private BigDecimal stockNumber;
    /**
     * 实际数量
     */
    @NotNull(message = "实际数量不能为空", groups = DefaultGroup.class)
    private BigDecimal actualNumber;
    /**
     * 盈亏数量
     */
    @NotNull(message = "盈亏数量不能为空", groups = DefaultGroup.class)
    private BigDecimal winLossNumber;
    /**
     * 单价
     */
    @NotNull(message = "单价不能为空", groups = DefaultGroup.class)
    private BigDecimal price;
    /**
     * 备注
     */
    private String remark;
}
