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

/**
 * 结算物料明细业务对象 erp_settlement_material_info
 *
 * @author liushuai
 * @date 2025-04-16
 */

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

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

    /**
     * 结算单ID
     */
    @NotNull(message = "结算单ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long settlementId;

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

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

    /**
     * 物资分类ID
     */
    @NotNull(message = "物资分类ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long materialTypeId;

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

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

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

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

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

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

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

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

    /**
     * 物资编码
     */
    @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;

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

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

    /**
     * 结算单价
     */
    @NotNull(message = "结算单价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal settlementPrice;

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

    /**
     * 状态
     */
    private Integer state;


}
