package com.maintain.business.domain.bo;

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.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.maintain.common.core.domain.BaseEntity;

/**
 * 物料入库业务对象 erp_material_putaway
 *
 * @author liushuai
 * @date 2025-04-03
 */

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

    /**
     * 入库单主键
     */
    private Long id;

    /**
     * 订单单号
     */
    @NotBlank(message = "订单单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderNumber;

    /**
     * 到货单号
     */
    @NotBlank(message = "到货单号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String arrivalNumber;

    /**
     * 入库单号
     */
    private String putawayCode;

    /**
     * 入库类型（1铺货入库 2盘盈入库）
     */
    private String putawayType;

    /**
     * 入库时间
     */
    @NotNull(message = "入库时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date putawayTime;

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

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

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

    /**
     * 供应商ID
     */
    private Long vendorId;

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

    /**
     * 状态（1登记中 2已入库）
     */
    @NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer state;

    /**
     * 创建部门（数据权限）
     */
    private Long createDeptId;

    /**
     * 入库明细列表
     */
    private List<ErpMaterialPutawayInfoBo> putawayInfoList;


}
