package com.maintain.business.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.maintain.common.core.domain.BaseEntity;
import com.maintain.common.core.validate.AddGroup;
import com.maintain.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * 物料出库明细业务对象 erp_material_picking_info
 *
 * @author liushuai
 * @date 2025-04-03
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpMaterialPickingInfoAddBo extends BaseEntity {

    /**
     * 记录ID
     */
    @NotNull(message = "记录ID不能为空", groups = { EditGroup.class })
    private Long recordId;

    /**
     * 明细ID
     */
    @NotNull(message = "明细ID不能为空", groups = { EditGroup.class })
    private Long infoId;

    /**
     * 仓库ID
     */
    @NotNull(message = "仓库ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long warehouseId;

    /**
     * 仓库名称
     */
    private String warehouseName;

    /**
     * 供应商ID
     */
    @NotNull(message = "供应商ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long vendorId;

    /**
     * 供应商名称
     */
    private String vendorName;

    /**
     * 物料ID
     */
    @NotNull(message = "物料ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long materialId;

    /**
     * 物资编码
     */
    private String materialCode;

    /**
     * 物资名称
     */
    private String materialName;

    /**
     * 物资规格
     */
    private String materialSpecifications;

    /**
     * 物资单位
     */
    private String materialUnit;

    /**
     * 质保期（月）
     */
    private Integer materialWarrantyPeriod;

    /**
     * 参考价
     */
    private BigDecimal referencePrice;

    /**
     * 销售价
     */
    private BigDecimal sellingPrice;

    /**
     * 出库数量
     */
    @NotNull(message = "出库数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal collectNumber;

    /**
     * 单价
     */
    @NotNull(message = "单价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal price;

    /**
     * 金额
     */
    @NotNull(message = "金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal money;


}
