package com.maintain.business.domain.bo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.maintain.common.core.validate.AddGroup;
import com.maintain.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import java.util.List;

import com.maintain.common.core.domain.BaseEntity;

/**
 * 物资业务对象 erp_material
 *
 * @author liushuai
 * @date 2025-04-03
 */

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

    /**
     * 物资主键
     */
    private Long id;

    /**
     * 物资分类ID
     */
    private Long materialTypeId;

    /**
     * 物资分类名称
     */
    private String materialTypeName;

    /**
     * 部门ID
     */
    private Long deptId;

    /**
     * 仓库ID列表
     */
    private List<Long> warehouseIdList;

    /**
     * 仓库ID
     */
    private Long warehouseId;

    /**
     * 仓库ID
     */
    private String warehouseName;

    /**
     * 仓库货位ID
     */
    private Long warehouseLocationId;

    /**
     * 仓库货位编码
     */
    private String warehouseLocationCode;

    /**
     * 仓库货位类型
     */
    private String warehouseLocationType;

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

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

    /**
     * 物资编码
     */
    @NotBlank(message = "物资编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String materialCode;

    /**
     * 物资名称
     */
    @NotBlank(message = "物资名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String materialName;

    /**
     * 物资规格
     */
    @NotBlank(message = "物资规格不能为空", groups = { AddGroup.class, EditGroup.class })
    private String materialSpecifications;

    /**
     * 物资单位
     */
    @NotBlank(message = "物资单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String materialUnit;

    /**
     * 物资品牌
     */
    private String materialBrand;
    /**
     * 采购标的
     */
    private String procurementSubject;
    /**
     * 适用车型
     */
    private String compatibleWith;
    /**
     * 物资图片
     */
    private String materialUrl;

    /**
     * 质保期（月）
     */
    @NotNull(message = "质保期（月）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer materialWarrantyPeriod;

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

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

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

    /**
     * 是否启用（0否 1是 默认1）
     */
    private String isEnable;

    /**
     * 是否通用（0否 1是 默认1）
     */
    private String isUniversal;

    /**
     * 是否盘点中（0否 1是 默认0）
     */
    private Integer isCheck;


}
