|
|
@@ -1124,12 +1124,21 @@ public class StatisticsServiceImpl implements IStatisticsService {
|
|
|
} else {
|
|
|
return new ArrayList<>();
|
|
|
}
|
|
|
+ if(param.getType() == 5){
|
|
|
+ Map<String, Object> params = new HashMap<>();
|
|
|
+ params.put("startTime", param.getStartTime());
|
|
|
+ params.put("endTime", param.getEndTime());
|
|
|
+ params.put("companyId", param.getCompanyId());
|
|
|
+ params.put("sendType", sendType);
|
|
|
+ watchCourseStatisticsDTOS=fsCourseWatchLogMapper.watchCourseStatisticsGroupByCompany(params);
|
|
|
+ } else {
|
|
|
+ watchCourseStatisticsDTOS = watchCourseStatisticsDTOS.stream()
|
|
|
+ .filter(dto -> StringUtils.equals(sendType, dto.getSendType()))
|
|
|
+ .filter(dto -> param.getCompanyId() == null ||
|
|
|
+ StringUtils.equals(dto.getCompanyId(), String.valueOf(param.getCompanyId())))
|
|
|
+ .collect(Collectors.toList());
|
|
|
+ }
|
|
|
|
|
|
- watchCourseStatisticsDTOS = watchCourseStatisticsDTOS.stream()
|
|
|
- .filter(dto -> StringUtils.equals(sendType, dto.getSendType()))
|
|
|
- .filter(dto -> param.getCompanyId() == null ||
|
|
|
- StringUtils.equals(dto.getCompanyId(), String.valueOf(param.getCompanyId())))
|
|
|
- .collect(Collectors.toList());
|
|
|
|
|
|
|
|
|
return watchCourseStatisticsDTOS;
|