package com.czg.product.param;

import com.czg.validator.group.DefaultGroup;
import com.czg.validator.group.InsertGroup;
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 ConsSubUnitParam implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @NotNull(message = "ID不能为空", groups = DefaultGroup.class)
    private Long id;
    /**
     * 耗材分组id
     */
    @NotNull(message = "副单位不能为空", groups = InsertGroup.class)
    private String conUnitTwo;
    /**
     * 转换数量 (等同于多少主单位)
     */
    @NotNull(message = "转换数量不能为空", groups = InsertGroup.class)
    private BigDecimal conUnitTwoConvert;
    /**
     * 默认入库单位
     */
    @NotNull(message = "默认入库单位不能为空", groups = InsertGroup.class)
    private String defaultUnit;
    /**
     * 修改标志 add-新增 delete-删除
     */
    @NotNull(message = "修改标志不能为空", groups = DefaultGroup.class)
    private String modifyFlag;

}