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

/**
 * 物资供应商业务对象 erp_material_vendor
 *
 * @author liushuai
 * @date 2025-04-03
 */

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

    /**
     * 供应商主键
     */
    private Long id;

    /**
     * 供应商名称
     */
    @NotBlank(message = "供应商名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String vendorName;

    /**
     * 供应商联系人
     */
    @NotBlank(message = "供应商联系人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String vendorContact;

    /**
     * 供应商联系电话
     */
    @NotBlank(message = "供应商联系电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String vendorPhone;

    /**
     * 供应商地址
     */
    @NotBlank(message = "供应商地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String vendorAddress;

    /**
     * 纳税人识别号
     */
    private String taxpayerId;

    /**
     * 是否启用
     */
    @NotNull(message = "是否启用不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer isEnable;


}
