Warehouse.java 5.32 KB
package com.huaheng.pc.config.warehouse.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "warehouse")
public class Warehouse implements Serializable {
    /**
     * 仓库编码
     */
    @TableId(value = "code", type = IdType.INPUT)
    private String code;

    /**
     * 地址1
     */
    @TableField(value = "address1")
    private String address1;

    /**
     * 地址2
     */
    @TableField(value = "address2")
    private String address2;

    /**
     * 城市
     */
    @TableField(value = "city")
    private String city;

    /**
     * 省份
     */
    @TableField(value = "state")
    private String state;

    /**
     * 区/县
     */
    @TableField(value = "district")
    private String district;

    /**
     * 国家
     */
    @TableField(value = "country")
    private String country;

    /**
     * 邮编
     */
    @TableField(value = "postalCode")
    private String postalCode;

    /**
     * 联系人
     */
    @TableField(value = "attentionTo")
    private String attentionTo;

    /**
     * 联系电话
     */
    @TableField(value = "phoneNum")
    private String phoneNum;

    /**
     * 传真号
     */
    @TableField(value = "faxNum")
    private String faxNum;

    /**
     * 邮件地址
     */
    @TableField(value = "email")
    private String email;

    public boolean isFlag() {
        return flag;
    }

    public Warehouse setFlag(boolean flag) {
        this.flag = flag;
        return this;
    }

    /**
     * 上位系统url地址
     */
    @TableField(value = "hostCode")
    private String hostCode;

    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 状态
     */
    @TableField(value = "enable")
    private Integer enable;

    /**
     * 公司编码
     */
    @TableField(value = "orgCode")
    private String orgCode;

    /**
     * 创建时间
     */
    @TableField(value = "created")
    private Date created;

    /**
     * 创建用户
     */
    @TableField(value = "createdBy")
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(value = "lastUpdated")
    private Date lastUpdated;

    /**
     * 更新用户
     */
    @TableField(value = "lastUpdatedBy")
    private String lastUpdatedBy;

    /**
     * 数据版本
     */
    @TableField(value = "version")
    private Integer version;

    /**
     * 自定义字段1
     */
    @TableField(value = "userDef1")
    private String userDef1;

    /**
     * 自定义字段2
     */
    @TableField(value = "userDef2")
    private String userDef2;

    /**
     * 自定义字段3
     */
    @TableField(value = "userDef3")
    private String userDef3;

    /**
     * 自定义字段4
     */
    @TableField(value = "userDef4")
    private String userDef4;

    /**
     * 自定义字段5
     */
    @TableField(value = "userDef5")
    private String userDef5;

    /**
     * 自定义字段6
     */
    @TableField(value = "userDef6")
    private String userDef6;

    /**
     * 自定义字段7
     */
    @TableField(value = "userDef7")
    private String userDef7;

    /**
     * 自定义字段8
     */
    @TableField(value = "userDef8")
    private String userDef8;

    @TableField(value = "deleted")
    private Boolean deleted;

    /** 用户是否存在此仓库标识 默认不存在 */
    @TableField(exist = false)
    private boolean flag = false;

    private static final long serialVersionUID = 1L;

    public static final String COL_ADDRESS1 = "address1";

    public static final String COL_ADDRESS2 = "address2";

    public static final String COL_CITY = "city";

    public static final String COL_STATE = "state";

    public static final String COL_DISTRICT = "district";

    public static final String COL_COUNTRY = "country";

    public static final String COL_POSTALCODE = "postalCode";

    public static final String COL_ATTENTIONTO = "attentionTo";

    public static final String COL_PHONENUM = "phoneNum";

    public static final String COL_FAXNUM = "faxNum";

    public static final String COL_EMAIL = "email";

    public static final String COL_HOSTCODE = "hostCode";

    public static final String COL_NAME = "name";

    public static final String COL_ENABLE = "enable";

    public static final String COL_ORGCODE = "orgCode";

    public static final String COL_CREATED = "created";

    public static final String COL_CREATEDBY = "createdBy";

    public static final String COL_LASTUPDATED = "lastUpdated";

    public static final String COL_LASTUPDATEDBY = "lastUpdatedBy";

    public static final String COL_VERSION = "version";

    public static final String COL_USERDEF1 = "userDef1";

    public static final String COL_USERDEF2 = "userDef2";

    public static final String COL_USERDEF3 = "userDef3";

    public static final String COL_USERDEF4 = "userDef4";

    public static final String COL_USERDEF5 = "userDef5";

    public static final String COL_USERDEF6 = "userDef6";

    public static final String COL_USERDEF7 = "userDef7";

    public static final String COL_USERDEF8 = "userDef8";

    public static final String COL_DELETED = "deleted";
}