package com.zd.airbottle.domain;

import com.zd.airbottle.constant.Constants;
import com.zd.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * 供应商对象 qp_supplier
 */
@ApiModel("供应商")
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class QpSupplier extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id,数据唯一标识
     */
    @ApiModelProperty(value = "${comment}")
    private Long id;
    /**
     * 企业名称
     */
    @ApiModelProperty(value = "企业名称")
    private String companyName;
    /**
     * 企业简称
     */
    @ApiModelProperty(value = "企业简称")
    private String companyShort;
    /**
     * 联系人
     */
    @ApiModelProperty(value = "联系人")
    private String contacts;
    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码")
    @Pattern(regexp = Constants.REGEX_MOBILE_EXACT)
    private String phone;

    @ApiModelProperty("审核时间")
    private Date auditTime;

    @ApiModelProperty(value = "账号ID")
    private Long accountId;

    @ApiModelProperty(value = "资格状态（0：启用，1:停用）")
    private Integer status;

    @ApiModelProperty(value = "审核状态（0：未审核，1:审核通过，2：审核未通过）")
    private Integer state;
    /**
     * 经营备案
     */
    @ApiModelProperty(value = "经营备案")
    private String businessRecord;
    /**
     * 经营地址
     */
    @ApiModelProperty(value = "经营地址")
    private String businessAddress;

    /**
     * 部门id
     */
    private Long deptId;
    /**
     * 部门名称
     */
    private String deptName;

    @Override
    public Long getDeptId() {
        return deptId;
    }
    @Override
    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }
    @Override
    public String getDeptName() {
        return deptName;
    }
    @Override
    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }
}
