AMPReport.java
7.74 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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
package com.xkl.domain;
import lombok.Data;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* 用户数据的domain类
*/
@Entity
@Table(name = "xkl_amp_report")
@Data
public class AMPReport {
//用户id
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
@Column(name = "member_id")
private int member_id;
// 姓名
@Column(name = "name")
private String name;
// 报告标题
@Column(name = "title")
private String title;
// 体检时间
@Column(name = "check_time")
private Timestamp check_time;
// 上传时间
@Column(name = "uptime")
private Timestamp uptime;
//用户账号
@Column(name = "account_str")
private String account_str;
// 0, 男; 1,女
@Column(name = "sex")
private int sex;
@Column(name = "age")
private int age;
@Column(name = "weight")
private int weight;
// 脉搏
@Column(name = "pulse")
private int pulse;
// 呼吸频率
@Column(name = "breath_rate")
private int breath_rate;
// 大气压力
@Column(name = "atmos_pressure")
private float atmos_pressure;
@Column(name = "LCA")
private float LCA;
@Column(name = "RCA")
private float RCA;
@Column(name = "LAC")
private float LAC;
@Column(name = "RAC")
private float RAC;
@Column(name = "ABD")
private float ABD;
// 温度和
@Column(name = "temp_sum")
private float temp_sum;
// 稳定值
@Column(name = "stable")
private int stable;
// 报告md5值
@Column(name = "md5")
private String md5;
// 创建者id
@Column(name = "create_by")
private int create_by;
// 机器号码
@Column(name = "machine_num")
private String machine_num;
@Column(name = "T0")
private String T0;
@Column(name = "T1")
private String T1;
@Column(name = "T2")
private String T2;
@Column(name = "T3")
private String T3;
@Column(name = "T4")
private String T4;
// 体检结论
@Column(name = "conclusion")
private String conclusion;
// 健康评分
@Column(name = "score")
private float score;
// 所属公司id
@Column(name = "company_id")
private int company_id;
// 报告状态 0,失效;1有效。
@Column(name = "status")
private int status;
public void setReport(String name, String title, Timestamp check_time,
Timestamp uptime, String account_str, int sex, int age,
int weight, int pulse, int breath_rate, float atmos_pressure,
float LCA, float RCA, float LAC, float RAC, float ABD, float temp_sum,
int stable, String md5,String machine_num, String conclusion) {
this.name = name;
this.title = title;
this.check_time = check_time;
this.uptime = uptime;
this.account_str = account_str;
this.sex = sex;
this.age = age;
this.weight = weight;
this.pulse = pulse;
this.breath_rate = breath_rate;
this.atmos_pressure = atmos_pressure;
this.LCA = LCA;
this.RCA = RCA;
this.LAC = LAC;
this.RAC = RAC;
this.ABD = ABD;
this.temp_sum = temp_sum;
this.stable = stable;
this.md5 = md5;
this.machine_num = machine_num;
this.conclusion = conclusion;
this.status = 1; //默认为有效。
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getMember_id() {
return member_id;
}
public void setMember_id(int member_id) {
this.member_id = member_id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public Timestamp getCheck_time() {
return check_time;
}
public void setCheck_time(Timestamp check_time) {
this.check_time = check_time;
}
public Timestamp getUptime() {
return uptime;
}
public void setUptime(Timestamp uptime) {
this.uptime = uptime;
}
public String getAccount_str() {
return account_str;
}
public void setAccount_str(String account_str) {
this.account_str = account_str;
}
public int getSex() {
return sex;
}
public void setSex(int sex) {
this.sex = sex;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public int getWeight() {
return weight;
}
public void setWeight(int weight) {
this.weight = weight;
}
public int getPulse() {
return pulse;
}
public void setPulse(int pulse) {
this.pulse = pulse;
}
public int getBreath_rate() {
return breath_rate;
}
public void setBreath_rate(int breath_rate) {
this.breath_rate = breath_rate;
}
public float getAtmos_pressure() {
return atmos_pressure;
}
public void setAtmos_pressure(float atmos_pressure) {
this.atmos_pressure = atmos_pressure;
}
public float getLCA() {
return LCA;
}
public void setLCA(float LCA) {
this.LCA = LCA;
}
public float getRCA() {
return RCA;
}
public void setRCA(float RCA) {
this.RCA = RCA;
}
public float getLAC() {
return LAC;
}
public void setLAC(float LAC) {
this.LAC = LAC;
}
public float getRAC() {
return RAC;
}
public void setRAC(float RAC) {
this.RAC = RAC;
}
public float getABD() {
return ABD;
}
public void setABD(float ABD) {
this.ABD = ABD;
}
public float getTemp_sum() {
return temp_sum;
}
public void setTemp_sum(float temp_sum) {
this.temp_sum = temp_sum;
}
public int getStable() {
return stable;
}
public void setStable(int stable) {
this.stable = stable;
}
public String getMd5() {
return md5;
}
public void setMd5(String md5) {
this.md5 = md5;
}
public int getCreate_by() {
return create_by;
}
public void setCreate_by(int create_by) {
this.create_by = create_by;
}
public String getMachine_num() {
return machine_num;
}
public void setMachine_num(String machine_num) {
this.machine_num = machine_num;
}
public String getT0() {
return T0;
}
public void setT0(String t0) {
T0 = t0;
}
public String getT1() {
return T1;
}
public void setT1(String t1) {
T1 = t1;
}
public String getT2() {
return T2;
}
public void setT2(String t2) {
T2 = t2;
}
public String getT3() {
return T3;
}
public void setT3(String t3) {
T3 = t3;
}
public String getT4() {
return T4;
}
public void setT4(String t4) {
T4 = t4;
}
public String getConclusion() {
return conclusion;
}
public void setConclusion(String conclusion) {
this.conclusion = conclusion;
}
public float getScore() {
return score;
}
public void setScore(float score) {
this.score = score;
}
public int getCompany_id() {
return company_id;
}
public void setCompany_id(int company_id) {
this.company_id = company_id;
}
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
}