package cn.estsh.i3plus.pojo.mes.bean;

import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description : 供应商
 * @Reference :
 * @Author : amy
 * @CreateDate : 2018-11-07 14:21
 * @Modify:
 **/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="BAS_VENDOR")
@Api("供应商信息")
public class BasVendor extends BaseBean implements Serializable {

    private static final long serialVersionUID = -8041987864739007553L;

    @Column(name="VENDOR_NO")
    @ApiParam("供应商编号")
    private String vendorNo;

    @Column(name="VENDOR_NAME")
    @ApiParam("供应商简称")
    private String vendorName;

    @Column(name="VENDOR_DESC")
    @ApiParam("供应商全称")
    private String vendorDesc;

    @Column(name="VENDOR_ADDR")
    @ApiParam("供应商地址")
    private String vendorAddr;

    @Column(name="VENDOR_OWNER")
    @ApiParam("联系人")
    private String vendorOwner;

    @Column(name="VENDOR_EMAIL")
    @ApiParam("邮箱")
    private String vendorEmail;

    @Column(name = "IS_ASN")
    @ApiParam(value = "是否发ASN", example = "0")
    private Integer isAsn;

    @Column(name = "USER_NAME")
    @ApiParam(value = "用户名")
    private String userName;

    @Column(name = "PASSWORD")
    @ApiParam(value = "密码")
    private String password;

    @Column(name = "VENDOR_CALL")
    @ApiParam("供应商电话")
    private String vendorCall;

    @Column(name = "VENDOR_FAX")
    @ApiParam("传真")
    private String vendorFax;

    @Column(name = "VENDOR_PHONE")
    @ApiParam("手机")
    private String vendorPhone;

    @Column(name = "KILOBIT")
    @ApiParam("千位符号")
    private String kilobit;

    @Column(name = "DECIMALS")
    @ApiParam("小数位符号")
    private String decimals;

    //20-承运商
    @Column(name = "VENDOR_TYPE")
    private Integer vendorType;

    @Column(name = "MAP_LOCATION")
    @ApiParam("经纬度")
    private String mapLocation;

    public BasVendor() {
    }

    public BasVendor(Long id, String userName) {
        this.id = id;
        this.userName = userName;
    }
}
