Budget.java
5.72 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
package com.bsth.entity.forms;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import com.bsth.entity.sys.SysUser;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
* 年度预算表
*/
@Entity
@Table(name = "bsth_t_budget")
public class Budget {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
//月份(原计划以年为单位,后改为每月)
private String year;
//公司编码
private String gsBm;
//公司名称
private String gsName;
//分公司编码
private String fgsBm;
//分公司名称
private String fgsName;
//线路编码
private String xlBm;
//线路名
private String xlName;
//是否营运
private boolean sfyy;
//预算公里
private Double budgetMileage;
//预算调整公里
private Double changeMileage;
//预算正式公里 = if(有调整){调整}else{预算}
private Double formalMileage;
//预算人次
private Double budgetPerson;
//预算调整人次
private Double changePerson;
//预算正式人次 = if(有调整){调整}else{预算}
private Double formalPerson;
//预算营收
private Double budgetAmounts;
//预算调整营收
private Double changeAmounts;
//预算正式营收 = if(有调整){调整}else{预算}
private Double formalAmounts;
/** 创建人 */
@JsonIgnore
private SysUser createBy;
/** 修改人 */
@JsonIgnore
private SysUser updateBy;
/** 创建日期 */
@Column(updatable = false, name = "create_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP")
private Date createDate;
/** 修改日期 */
@Column(name = "update_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP")
private Date updateDate;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
//年份
public String getYear() {
return year;
}
//年份
public void setYear(String year) {
this.year = year;
}
//公司编码
public String getGsBm() {
return gsBm;
}
//公司编码
public void setGsBm(String gsBm) {
this.gsBm = gsBm;
}
//公司名称
public String getGsName() {
return gsName;
}
//公司名称
public void setGsName(String gsName) {
this.gsName = gsName;
}
//分公司编码
public String getFgsBm() {
return fgsBm;
}
//分公司编码
public void setFgsBm(String fgsBm) {
this.fgsBm = fgsBm;
}
//分公司名称
public String getFgsName() {
return fgsName;
}
//分公司名称
public void setFgsName(String fgsName) {
this.fgsName = fgsName;
}
//线路编码
public String getXlBm() {
return xlBm;
}
//线路编码
public void setXlBm(String xlBm) {
this.xlBm = xlBm;
}
//线路名
public String getXlName() {
return xlName;
}
//线路名
public void setXlName(String xlName) {
this.xlName = xlName;
}
//是否营运
public boolean getSfyy() {
return sfyy;
}
//是否营运
public void setSfyy(boolean sfyy) {
this.sfyy = sfyy;
}
//预算公里
public Double getBudgetMileage() {
return budgetMileage;
}
//预算公里
public void setBudgetMileage(Double budgetMileage) {
this.budgetMileage = budgetMileage;
}
//预算调整公里
public Double getChangeMileage() {
return changeMileage;
}
//预算调整公里
public void setChangeMileage(Double changeMileage) {
this.changeMileage = changeMileage;
}
//预算正式公里 = if(有调整){调整}else{预算}
public Double getFormalMileage() {
return formalMileage;
}
//预算正式公里 = if(有调整){调整}else{预算}
public void setFormalMileage(Double formalMileage) {
this.formalMileage = formalMileage;
}
//预算人次
public Double getBudgetPerson() {
return budgetPerson;
}
//预算人次
public void setBudgetPerson(Double budgetPerson) {
this.budgetPerson = budgetPerson;
}
//预算调整人次
public Double getChangePerson() {
return changePerson;
}
//预算调整人次
public void setChangePerson(Double changePerson) {
this.changePerson = changePerson;
}
//预算正式人次 = if(有调整){调整}else{预算}
public Double getFormalPerson() {
return formalPerson;
}
//预算正式人次 = if(有调整){调整}else{预算}
public void setFormalPerson(Double formalPerson) {
this.formalPerson = formalPerson;
}
//预算营收
public Double getBudgetAmounts() {
return budgetAmounts;
}
//预算营收
public void setBudgetAmounts(Double budgetAmounts) {
this.budgetAmounts = budgetAmounts;
}
//预算调整营收
public Double getChangeAmounts() {
return changeAmounts;
}
//预算调整营收
public void setChangeAmounts(Double changeAmounts) {
this.changeAmounts = changeAmounts;
}
//预算正式营收 = if(有调整){调整}else{预算}
public Double getFormalAmounts() {
return formalAmounts;
}
//预算正式营收 = if(有调整){调整}else{预算}
public void setFormalAmounts(Double formalAmounts) {
this.formalAmounts = formalAmounts;
}
public SysUser getCreateBy() {
return createBy;
}
public void setCreateBy(SysUser createBy) {
this.createBy = createBy;
}
public SysUser getUpdateBy() {
return updateBy;
}
public void setUpdateBy(SysUser updateBy) {
this.updateBy = updateBy;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Date getUpdateDate() {
return updateDate;
}
public void setUpdateDate(Date updateDate) {
this.updateDate = updateDate;
}
}