package com.shkj.common.core.domain.entity;

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.io.Serializable;
import java.util.Date;

/**
 * 货主资料对象 base_consignor
 *
 * @author lch
 * @date 2022-03-22
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("base_consignor")
public class BaseConsignor implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 货主ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Excel(name = "货主ID", width = 20)
    private Long id;


    /**
     * 货主编码
     */
    @Excel(name = "货主编码", width = 20)
    private String consignorCode;

    /**
     * 编号
     */
    private String consignorNum;

    /**
     * 仓库ID
     */
    private Long branchId;

    /**
     * 货主名称
     */
    @Excel(name = "货主名称", width = 20)
    private String consignorName;


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


    /**
     * 货主类型
     */
    @Excel(name = "货主类型", width = 20)
    private String consignorType;


    /**
     * 地址
     */
    private String address;


    /**
     * 联系人
     */
    private String consignorUser;

    /**
     * 电话
     */
    private String consignorTel;

    /**
     * 是否锁定
     */
    private String isuse;


    /**
     * 扩展字段1
     */
    @Excel(name = "扩展字段1", width = 20)
    private String extend1;


    /**
     * 扩展字段2
     */
    @Excel(name = "扩展字段2", width = 20)
    private String extend2;


    /**
     * 扩展字段3
     */
    @Excel(name = "扩展字段3", width = 20)
    private String extend3;


    /**
     * 扩展字段4
     */
    @Excel(name = "扩展字段4", width = 20)
    private String extend4;


    /**
     * 扩展字段5
     */
    @Excel(name = "扩展字段5", width = 20)
    private String extend5;


    /**
     * 备注
     */
    @Excel(name = "备注", width = 20)
    private String remark;


    /**
     * 删除状态
     */
    @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;


}
