package com.ruoyi.oa.domain.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

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

/**
 * 仓库管理业务对象 sys_oa_warehouse
 *
 * @author liuzongkun999
 * @date 2024-11-02
 */

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

    /**
     * 主键id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

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

    /**
     * 型号
     */
    private String model;

    /**
     * 单价
     */
    private Double price;

    /**
     * 单位
     */
    private String unit;

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

    /**
     * 品牌
     */
    private String brand;

    /**
     * 规格
     */
    private String specifications;

    /**
     * 备注
     */
    private String remark;

    /**
     * 告警阈值
     */
    private Long threshold;

    private Long taskInventory;

    private Long warehouseId;

    /**
     * 批量新增时状态
     */
    private Long taskStatus;


}
