WorkWechatUserCheckInDayDataResponseDTO.java
11.5 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
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
package cn.com.glsx.wechatbuild.model;
import java.io.Serializable;
import java.util.List;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonMethod;
import org.codehaus.jackson.annotate.JsonProperty;
/**
* @author yelq
* @version V1.0
* @Title: WorkWechatUserCheckInDayDataResponseDTO.java
* @Description:获取打卡日报数据
* @date 2024年4月9日19点37分
*/
@NoArgsConstructor
@JsonAutoDetect(JsonMethod.FIELD)
@JsonIgnoreProperties(ignoreUnknown = true)
@Setter
@Getter
@ToString(callSuper = true, includeFieldNames = true)
public class WorkWechatUserCheckInDayDataResponseDTO extends BaseResponseDTO {
private static final long serialVersionUID = 65436547645740473L;
/**
* 日报数据列表
*/
@JsonProperty("datas")
private List<Data> datas;
@NoArgsConstructor
@JsonAutoDetect(JsonMethod.FIELD)
@JsonIgnoreProperties(ignoreUnknown = true)
@Setter
@Getter
@ToString(includeFieldNames = true, callSuper = true)
public static class Data implements Serializable {
/**
* 基础信息
*/
@JsonProperty("base_info")
private BaseInfo baseInfo;
/**
* 汇总信息
*/
@JsonProperty("summary_info")
private SummaryInfo summaryInfo;
/**
* 假勤相关信息
*/
@JsonProperty("holiday_infos")
private List<HolidayInfo> holidayInfos;
/**
* 校准状态信息
*/
@JsonProperty("exception_infos")
private List<ExceptionInfo> exceptionInfos;
/**
* 加班信息
*/
@JsonProperty("ot_info")
private OTInfo otInfo;
/**
* 假勤统计信息
*/
@JsonProperty("sp_items")
private List<SpItem> spItems;
}
@NoArgsConstructor
@JsonAutoDetect(JsonMethod.FIELD)
@JsonIgnoreProperties(ignoreUnknown = true)
@Setter
@Getter
@ToString(callSuper = true, includeFieldNames = true)
public static class SpItem implements Serializable{
/**
* 当日假勤次数
*/
@JsonProperty("count")
private Integer count;
/**
* 当日假勤时长秒数,时长单位为天直接除以86400即为天数,单位为小时直接除以3600即为小时数
*/
@JsonProperty("duration")
private Integer duration;
/**
* 时长单位:0-按天 1-按小时
*/
@JsonProperty("time_type")
private Integer timeType;
/**
* 类型:1-请假;2-补卡;3-出差;4-外出;100-外勤
*/
@JsonProperty("type")
private Integer type;
/**
* 具体请假类型,当type为1请假时,具体的请假类型id,可通过审批相关接口获取假期详情
*/
@JsonProperty("vacation_id")
private Integer vacationId;
/**
* 统计项名称
*/
@JsonProperty("name")
private String name;
}
@NoArgsConstructor
@JsonAutoDetect(JsonMethod.FIELD)
@JsonIgnoreProperties(ignoreUnknown = true)
@Setter
@Getter
@ToString(callSuper = true, includeFieldNames = true)
public static class OTInfo implements Serializable{
/**
* 状态:0-无加班;1-正常;2-缺时长
*/
@JsonProperty("ot_status")
private Integer otStatus;
/**
* 加班时长
*/
@JsonProperty("ot_duration")
private Integer otDuration;
/**
* ot_status为2下,加班不足的时长
*/
@JsonProperty("exception_duration")
private List<Integer> exceptionDuration;
/**
* 工作日加班记为调休,单位秒
*/
@JsonProperty("workday_over_as_vacation")
private Integer workdayOverAsVacation;
/**
* 工作日加班记为加班费,单位秒
*/
@JsonProperty("workday_over_as_money")
private Integer workdayOverAsMoney;
/**
* 休息日加班记为调休,单位秒
*/
@JsonProperty("restday_over_as_vacation")
private Integer restdayOverAsVacation;
/**
* 休息日加班记为加班费,单位秒
*/
@JsonProperty("restday_over_as_money")
private Integer restdayOverAsMoney;
/**
* 节假日加班记为调休,单位秒
*/
@JsonProperty("holiday_over_as_vacation")
private Integer holidayOverAsVacation;
/**
* 节假日加班记为加班费,单位秒
*/
@JsonProperty("holiday_over_as_money")
private Integer holidayOverAsMoney;
}
@NoArgsConstructor
@JsonAutoDetect(JsonMethod.FIELD)
@JsonIgnoreProperties(ignoreUnknown = true)
@Setter
@Getter
@ToString(callSuper = true, includeFieldNames = true)
public static class ExceptionInfo implements Serializable{
/**
* 当日此异常的次数
*/
@JsonProperty("count")
private Integer count;
/**
* 当日此异常的时长(迟到/早退/旷工才有值)
*/
@JsonProperty("duration")
private Integer duration;
/**
* 校准状态类型:1-迟到;2-早退;3-缺卡;4-旷工;5-地点异常;6-设备异常
*/
@JsonProperty("exception")
private Integer exception;
}
@NoArgsConstructor
@JsonAutoDetect(JsonMethod.FIELD)
@JsonIgnoreProperties(ignoreUnknown = true)
@Setter
@Getter
@ToString(callSuper = true, includeFieldNames = true)
public static class HolidayInfo implements Serializable{
/**
* 假勤信息摘要-描述信息
*/
@JsonProperty("sp_description")
private SpDescription spDescription;
/**
* 假勤申请id,即当日关联的假勤审批单id
*/
@JsonProperty("sp_number")
private String spNumber;
/**
* 假勤信息摘要-标题信息
*/
@JsonProperty("sp_title")
private SpTitle spTitle;
}
@NoArgsConstructor
@JsonAutoDetect(JsonMethod.FIELD)
@JsonIgnoreProperties(ignoreUnknown = true)
@Setter
@Getter
@ToString(callSuper = true, includeFieldNames = true)
public static class SpDescription implements Serializable{
/**
* 多种语言描述,目前只有中文一种
*/
@JsonProperty("data")
private List<SpText> data;
}
@NoArgsConstructor
@JsonAutoDetect(JsonMethod.FIELD)
@JsonIgnoreProperties(ignoreUnknown = true)
@Setter
@Getter
@ToString(callSuper = true, includeFieldNames = true)
public static class SpText implements Serializable{
/**
* 假勤信息摘要-标题文本
*/
@JsonProperty("lang")
private String lang;
/**
* 语言类型:"zh_CN"
*/
@JsonProperty("text")
private String text;
}
@NoArgsConstructor
@JsonAutoDetect(JsonMethod.FIELD)
@JsonIgnoreProperties(ignoreUnknown = true)
@Setter
@Getter
@ToString(callSuper = true, includeFieldNames = true)
public static class SpTitle implements Serializable{
/**
* 多种语言描述,目前只有中文一种
*/
@JsonProperty("date")
private List<SpText> data;
}
@NoArgsConstructor
@JsonAutoDetect(JsonMethod.FIELD)
@JsonIgnoreProperties(ignoreUnknown = true)
@Setter
@Getter
@ToString(callSuper = true, includeFieldNames = true)
public static class BaseInfo implements Serializable{
/**
* 日报日期
*/
@JsonProperty("date")
private long date;
/**
* 记录类型:1-固定上下班;2-外出(此报表中不会出现外出打卡数据);3-按班次上下班;4-自由签到;5-加班;7-无规则
*/
@JsonProperty("record_type")
private Integer recordType;
/**
* 打卡人员姓名
*/
@JsonProperty("name")
private String name;
/**
* 打卡人员别名
*/
@JsonProperty("name_ex")
private String nameEx;
/**
* 打卡人员所在部门,会显示所有所在部门
*/
@JsonProperty("departs_name")
private String departsName;
/**
* 打卡人员账号,即userid
*/
@JsonProperty("acctid")
private String acctid;
/**
* 打卡人员所属规则信息
*/
@JsonProperty("rule_info")
private RuleInfo ruleInfo;
/**
* 日报类型:0-工作日日报;1-休息日日报
*/
@JsonProperty("day_type")
private Integer dayType;
}
@NoArgsConstructor
@JsonAutoDetect(JsonMethod.FIELD)
@JsonIgnoreProperties(ignoreUnknown = true)
@Setter
@Getter
@ToString(callSuper = true, includeFieldNames = true)
public static class SummaryInfo implements Serializable{
/**
* 当日打卡次数
*/
@JsonProperty("checkin_count")
private Integer checkinCount;
/**
* 当日实际工作时长,单位:秒
*/
@JsonProperty("regular_work_sec")
private Integer regularWorkSec;
/**
* 当日标准工作时长,单位:秒
*/
@JsonProperty("standard_work_sec")
private Integer standardWorkSec;
/**
* 当日最早打卡时间
*/
@JsonProperty("earliest_time")
private Integer earliestTime;
/**
* 当日最晚打卡时间
*/
@JsonProperty("lastest_time")
private Integer latestTime;
}
@NoArgsConstructor
@JsonAutoDetect(JsonMethod.FIELD)
@JsonIgnoreProperties(ignoreUnknown = true)
@Setter
@Getter
@ToString(callSuper = true, includeFieldNames = true)
public static class RuleInfo implements Serializable{
/**
* 所属规则的id
*/
@JsonProperty("groupid")
private Integer groupid;
/**
* 打卡规则名
*/
@JsonProperty("groupname")
private String groupname;
/**
* 当日所属班次id,仅按班次上下班才有值,显示在打卡日报-班次列
*/
@JsonProperty("scheduleid")
private Integer scheduleid;
/**
* 当日所属班次名称,仅按班次上下班才有值,显示在打卡日报-班次列
*/
@JsonProperty("schedulename")
private String schedulename;
/**
* 当日打卡时间,仅固定上下班规则有值,显示在打卡日报-班次列
*/
@JsonProperty("checkintime")
private List<CheckInTime> checkInTime;
}
@NoArgsConstructor
@JsonAutoDetect(JsonMethod.FIELD)
@JsonIgnoreProperties(ignoreUnknown = true)
@Setter
@Getter
@ToString(callSuper = true, includeFieldNames = true)
public static class CheckInTime {
/**
* 上班时间,为距离0点的时间差
*/
@JsonProperty("work_sec")
private Integer workSec;
/**
* 下班时间,为距离0点的时间差
*/
@JsonProperty("off_work_sec")
private Integer offWorkSec;
}
}