|
|
@@ -13,8 +13,8 @@ import java.math.BigDecimal;
|
|
13
|
13
|
import java.util.List;
|
|
14
|
14
|
|
|
15
|
15
|
/**
|
|
16
|
|
- * 科室出勤人次计算器
|
|
17
|
|
- * 计算指定科室的出勤人次统计
|
|
|
16
|
+ * 大队出勤人次计算器
|
|
|
17
|
+ * 计算指定大队的出勤人次统计
|
|
18
|
18
|
*/
|
|
19
|
19
|
@Component
|
|
20
|
20
|
public class BrigadeAttendancePersonCountCalculator extends AbstractIndicatorCalculator<BigDecimal> {
|
|
|
@@ -42,7 +42,7 @@ public class BrigadeAttendancePersonCountCalculator extends AbstractIndicatorCal
|
|
42
|
42
|
// 查询考勤记录
|
|
43
|
43
|
List<AttendanceRecord> records = attendanceRecordMapper.selectAttendanceRecordList(record);
|
|
44
|
44
|
|
|
45
|
|
- // 返回科室出勤人次(去重后的用户数量)
|
|
|
45
|
+ // 返回大队出勤人次(去重后的用户数量)
|
|
46
|
46
|
return new BigDecimal(records.stream()
|
|
47
|
47
|
.map(AttendanceRecord::getUserId)
|
|
48
|
48
|
.distinct()
|
|
|
@@ -61,6 +61,6 @@ public class BrigadeAttendancePersonCountCalculator extends AbstractIndicatorCal
|
|
61
|
61
|
|
|
62
|
62
|
@Override
|
|
63
|
63
|
public String getIndicatorDescription() {
|
|
64
|
|
- return "科室出勤人次统计";
|
|
|
64
|
+ return "大队出勤人次统计";
|
|
65
|
65
|
}
|
|
66
|
66
|
}
|