|
|
@@ -50,7 +50,18 @@ public class AttendancePostRecordServiceImpl implements IAttendancePostRecordSer
|
|
50
|
50
|
if (CollectionUtil.isEmpty(records)) {
|
|
51
|
51
|
return new ArrayList<>();
|
|
52
|
52
|
}
|
|
53
|
|
- records = records.stream().map(record -> {
|
|
|
53
|
+// records = records.stream().map(record -> {
|
|
|
54
|
+// //下通道时间是2001年1月1日00:00:00,所以这里要设置为null
|
|
|
55
|
+// if (record.getCheckOutTime() != null && record.getCheckOutTime().getTime() == 978352000000L) {
|
|
|
56
|
+// record.setCheckOutTime(null);
|
|
|
57
|
+// }
|
|
|
58
|
+// if (record.getWorkDuration() != null && record.getWorkDuration() < 0) {
|
|
|
59
|
+// record.setWorkDuration(0L);
|
|
|
60
|
+// }
|
|
|
61
|
+// return record;
|
|
|
62
|
+// }).collect(Collectors.toList());
|
|
|
63
|
+
|
|
|
64
|
+ records.forEach(record -> {
|
|
54
|
65
|
//下通道时间是2001年1月1日00:00:00,所以这里要设置为null
|
|
55
|
66
|
if (record.getCheckOutTime() != null && record.getCheckOutTime().getTime() == 978352000000L) {
|
|
56
|
67
|
record.setCheckOutTime(null);
|
|
|
@@ -58,8 +69,7 @@ public class AttendancePostRecordServiceImpl implements IAttendancePostRecordSer
|
|
58
|
69
|
if (record.getWorkDuration() != null && record.getWorkDuration() < 0) {
|
|
59
|
70
|
record.setWorkDuration(0L);
|
|
60
|
71
|
}
|
|
61
|
|
- return record;
|
|
62
|
|
- }).collect(Collectors.toList());
|
|
|
72
|
+ });
|
|
63
|
73
|
return records;
|
|
64
|
74
|
}
|
|
65
|
75
|
|