package com.shkj.wms.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.shkj.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.util.Date;
import java.io.Serializable;

/**
 * 客商资料对象 base_company
 *
 * @author lch
 * @date 2022-04-09
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("base_company")
public class BaseCompany implements Serializable {

private static final long serialVersionUID=1L;



    /**
     * 客户数据唯一自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Excel(name = "唯一自增id", width = 15 )
    private Long id;


    /**
     * 客户ID
     */
    @Excel(name = "客户ID", width = 20)
    private String companyNum;


    /**
     * 单位编号
     */
    @Excel(name = "单位编号", width = 20)
    private String companyNo;


    /**
     * 单位名称
     */
    @Excel(name = "单位名称", width = 20)
    private String companyName;


    /**
     * 助记码
     */
    @Excel(name = "助记码", width = 20)
    private String mnemonic;


    /**
     * 客户分类：V/C/H/W  供应商：V,客户：C,供应商客户：W
     */
    @Excel(name = "客户分类：V/C/H/W  供应商：V,客户：C,供应商客户：W", width = 20)
    private String type;


    /**
     * 业主编号
     */
    @Excel(name = "业主编号", width = 20)
    private Long consignorId;

    /**
     * 地址
     */
    @Excel(name = "地址", width = 20)
    private String address;

    /**
     * 报价编码
     */
    @Excel(name = "报价编码", width = 20)
    private String offerCode;

    /**
     * 是否两票制客户
     */
    @Excel(name = "是否两票制客户", width = 20)
    private String specifications;


    /**
     * 是否打印随货同行单
     */
    @Excel(name = "是否打印随货同行单", width = 20)
    private String storageConditions;


    /**
     * 是否打印发票
     */
    @Excel(name = "是否打印发票", width = 20)
    private String storageClassify;


    /**
     * 仓ID
     */
    @Excel(name = "仓ID", width = 20)
    private Long branchId;

    /**
     * 删除状态
     */
    @Excel(name = "删除状态", width = 20)
    private String isDel;


    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+7")
    private Date createTime;


    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Excel(name = "创建人", width = 20)
    private String createBy;


    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+7")
    private Date updateTime;


    /**
     * 修改人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Excel(name = "修改人", width = 20)
    private String updateBy;


}
