Company.java 6.64 KB
package com.huaheng.pc.general.company.domain;

import com.huaheng.framework.aspectj.lang.annotation.Excel;
import com.huaheng.framework.web.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.*;
import java.util.Date;

public class Company extends BaseEntity {

    @ApiModelProperty(value = "公司id")
    private Integer id;
    public void setId(Integer id)  { this.id = id; }
    public Integer getId()  { return this.id; }

    @NotBlank(message="编码不能为空")
    @ApiModelProperty(value = "编码")
    private String code;
    public void setCode(String code)  { this.code = code == null ? null : code.trim(); }
    public String getCode()  { return this.code; }

    @ApiModelProperty(value = "仓库id")
    private Integer warehouseId;
    public void setWarehouseId(Integer warehouseId)  { this.warehouseId = warehouseId; }
    public Integer getWarehouseId()  { return this.warehouseId; }

    @ApiModelProperty(value = "仓库编码")
    private String warehouseCode;
    public void setWarehouseCode(String warehouseCode)  { this.warehouseCode = warehouseCode; }
    public String getWarehouseCode()  { return this.warehouseCode; }

    @ApiModelProperty(value = "母公司")
    private Integer parentId;
    public void setParentId(Integer parentId)  { this.parentId = parentId; }
    public Integer getParentId()  { return this.parentId; }

    @NotBlank(message="公司类型不能为空")
    @ApiModelProperty(value = "公司类型")
    private String type;
    public void setType(String type)  { this.type = type == null ? null : type.trim(); }
    public String getType()  { return this.type; }

    @ApiModelProperty(value = "名称")
    private String name;
    public void setName(String name)  { this.name = name == null ? null : name.trim(); }
    public String getName()  { return this.name; }

    @ApiModelProperty(value = "地址1")
    private String address1;
    public void setAddress1(String address1)  { this.address1 = address1 == null ? null : address1.trim(); }
    public String getAddress1()  { return this.address1; }

    @ApiModelProperty(value = "地址2")
    private String address2;
    public void setAddress2(String address2)  { this.address2 = address2 == null ? null : address2.trim(); }
    public String getAddress2()  { return this.address2; }

    @ApiModelProperty(value = "城市")
    private String city;
    public void setCity(String city)  { this.city = city == null ? null : city.trim(); }
    public String getCity()  { return this.city; }

    @ApiModelProperty(value = "省份")
    private String province;
    public void setProvince(String province)  { this.province = province == null ? null : province.trim(); }
    public String getProvince()  { return this.province; }

    @ApiModelProperty(value = "国家")
    private String country;
    public void setCountry(String country)  { this.country = country == null ? null : country.trim(); }
    public String getCountry()  { return this.country; }

    @ApiModelProperty(value = "邮编")
    private String postalCode;
    public void setPostalCode(String postalCode)  { this.postalCode = postalCode == null ? null : postalCode.trim(); }
    public String getPostalCode()  { return this.postalCode; }

    @ApiModelProperty(value = "联系人")
    private String attentionTo;
    public void setAttentionTo(String attentionTo)  { this.attentionTo = attentionTo == null ? null : attentionTo.trim(); }
    public String getAttentionTo()  { return this.attentionTo; }

    @ApiModelProperty(value = "电话")
    private String phoneNum;
    public void setPhoneNum(String phoneNum)  { this.phoneNum = phoneNum == null ? null : phoneNum.trim(); }
    public String getPhoneNum()  { return this.phoneNum; }

    @ApiModelProperty(value = "手机")
    private String mobile;
    public void setMobile(String mobile)  { this.mobile = mobile == null ? null : mobile.trim(); }
    public String getMobile()  { return this.mobile; }

    @ApiModelProperty(value = "传真")
    private String faxNum;
    public void setFaxNum(String faxNum)  { this.faxNum = faxNum == null ? null : faxNum.trim(); }
    public String getFaxNum()  { return this.faxNum; }

    @ApiModelProperty(value = "E-mail")
    private String email;
    public void setEmail(String email)  { this.email = email == null ? null : email.trim(); }
    public String getEmail()  { return this.email; }

    @ApiModelProperty(value = "创建时间")
    private Date created;
    public void setCreated(Date created)  { this.created = created; }
    public Date getCreated()  { return this.created; }

    @ApiModelProperty(value = "创建用户")
    private String createdBy;
    public void setCreatedBy(String createdBy)  { this.createdBy = createdBy == null ? null : createdBy.trim(); }
    public String getCreatedBy()  { return this.createdBy; }

    @ApiModelProperty(value = "创建时间")
    private Date lastUpdated;
    public void setLastUpdated(Date lastUpdated)  { this.lastUpdated = lastUpdated; }
    public Date getLastUpdated()  { return this.lastUpdated; }

    @ApiModelProperty(value = "更新用户")
    private String lastUpdatedBy;
    public void setLastUpdatedBy(String lastUpdatedBy)  { this.lastUpdatedBy = lastUpdatedBy == null ? null : lastUpdatedBy.trim(); }
    public String getLastUpdatedBy()  { return this.lastUpdatedBy; }

    @ApiModelProperty(value = "是否有效")
    private Boolean enable;
    public void setEnable(Boolean enable)  { this.enable = enable; }
    public Boolean getEnable()  { return this.enable; }

    @ApiModelProperty(value = "是否删除")
    private Boolean deleted;
    public void setDeleted(Boolean deleted)  { this.deleted = deleted; }
    public Boolean getDeleted()  { return this.deleted; }

    @ApiModelProperty(value = "自定义字段1")
    private String userDef1;
    public void setUserDef1(String userDef1)  { this.userDef1 = userDef1 == null ? null : userDef1.trim(); }
    public String getUserDef1()  { return this.userDef1; }

    @ApiModelProperty(value = "自定义字段2")
    private String userDef2;
    public void setUserDef2(String userDef2)  { this.userDef2 = userDef2 == null ? null : userDef2.trim(); }
    public String getUserDef2()  { return this.userDef2; }

    @ApiModelProperty(value = "自定义字段3")
    private String userDef3;
    public void setUserDef3(String userDef3)  { this.userDef3 = userDef3 == null ? null : userDef3.trim(); }
    public String getUserDef3()  { return this.userDef3; }

    /** 用户是否存在此货主标识 默认不存在 */
    private boolean flag = false;
    public boolean isFlag() {
        return flag;
    }
    public void setFlag(boolean flag) {
        this.flag = flag;
    }

}