Company.java
6.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
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;
}
}