package com.ruoyi.oa.domain.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 仓库出库业务对象 sys_oa_warehouse_detail
 *
 * @author liuzongkun999
 * @date 2024-11-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SysOaOutWarehouseBo2 extends BaseEntity {

    /**
     * 物料id
     */
    @NotNull(message = "出库对象id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long warehouseId;

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

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

    /**
     * 对应项目id
     */
    private Long projectId;



}
