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 com.ruoyi.common.core.domain.BaseEntity;

/**
 * 仓库出库业务对象 sys_oa_warehouse_detail
 *
 * @author liuzongkun999
 * @date 2024-11-02
 */

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

    /**
     * 主键id
     */
    @NotNull(message = "出库数量不能为空", groups = { EditGroup.class })
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 出库后对应的项目id
     */
    private Long projectId;

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

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

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

    /**
     * 项目名
     */
    private String projectName;

    /**
     * 物料名
     */
    private String warehouseName;

    private Double signPrice;

    private Long masterId;

    // 当为1的时候为入库单
    private Long type;


    private Long fatherId;
}
