|
@@ -46,6 +46,12 @@ public class FsUserWatchCourseStatisticsController extends BaseController
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
fsUserWatchCourseStatistics.setCompanyId( loginUser.getCompany().getCompanyId());
|
|
fsUserWatchCourseStatistics.setCompanyId( loginUser.getCompany().getCompanyId());
|
|
List<FsUserWatchCourseStatistics> list = fsUserWatchCourseStatisticsService.selectFsUserWatchCourseStatisticsList(fsUserWatchCourseStatistics);
|
|
List<FsUserWatchCourseStatistics> list = fsUserWatchCourseStatisticsService.selectFsUserWatchCourseStatisticsList(fsUserWatchCourseStatistics);
|
|
|
|
+ if(!list.isEmpty()){
|
|
|
|
+ for (FsUserWatchCourseStatistics userWatchCourseStatistics : list) {
|
|
|
|
+ userWatchCourseStatistics.setCompleteWatchRatePercent(userWatchCourseStatistics.getCompleteWatchRate() + "%");
|
|
|
|
+ userWatchCourseStatistics.setAnswerRightRatePercent(userWatchCourseStatistics.getAnswerRightRate() + "%");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
return getDataTable(list);
|
|
return getDataTable(list);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -57,6 +63,12 @@ public class FsUserWatchCourseStatisticsController extends BaseController
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
fsUserWatchCourseStatistics.setCompanyId( loginUser.getCompany().getCompanyId());
|
|
fsUserWatchCourseStatistics.setCompanyId( loginUser.getCompany().getCompanyId());
|
|
List<FsUserWatchCourseStatistics> list = fsUserWatchCourseStatisticsService.selectFsUserWatchCourseStatisticsList(fsUserWatchCourseStatistics);
|
|
List<FsUserWatchCourseStatistics> list = fsUserWatchCourseStatisticsService.selectFsUserWatchCourseStatisticsList(fsUserWatchCourseStatistics);
|
|
|
|
+ if(!list.isEmpty()){
|
|
|
|
+ for (FsUserWatchCourseStatistics userWatchCourseStatistics : list) {
|
|
|
|
+ userWatchCourseStatistics.setCompleteWatchRatePercent(userWatchCourseStatistics.getCompleteWatchRate() + "%");
|
|
|
|
+ userWatchCourseStatistics.setAnswerRightRatePercent(userWatchCourseStatistics.getAnswerRightRate() + "%");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
ExcelUtil<FsUserWatchCourseStatistics> util = new ExcelUtil<FsUserWatchCourseStatistics>(FsUserWatchCourseStatistics.class);
|
|
ExcelUtil<FsUserWatchCourseStatistics> util = new ExcelUtil<FsUserWatchCourseStatistics>(FsUserWatchCourseStatistics.class);
|
|
return util.exportExcel(list, "会员观看数据明细");
|
|
return util.exportExcel(list, "会员观看数据明细");
|
|
}
|
|
}
|
|
@@ -72,6 +84,11 @@ public class FsUserWatchCourseStatisticsController extends BaseController
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
fsUserWatchCourseStatistics.setCompanyId( loginUser.getCompany().getCompanyId());
|
|
fsUserWatchCourseStatistics.setCompanyId( loginUser.getCompany().getCompanyId());
|
|
List<FsUserWatchCourseStatistics> list = fsUserWatchCourseStatisticsService.selectFsUserWatchCourseStatisticsListTotal(fsUserWatchCourseStatistics);
|
|
List<FsUserWatchCourseStatistics> list = fsUserWatchCourseStatisticsService.selectFsUserWatchCourseStatisticsListTotal(fsUserWatchCourseStatistics);
|
|
|
|
+ if(!list.isEmpty()){
|
|
|
|
+ for (FsUserWatchCourseStatistics userWatchCourseStatistics : list) {
|
|
|
|
+ userWatchCourseStatistics.setCompleteWatchRatePercent(userWatchCourseStatistics.getCompleteWatchRate() + "%");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
return getDataTable(list);
|
|
return getDataTable(list);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -88,6 +105,7 @@ public class FsUserWatchCourseStatisticsController extends BaseController
|
|
List<FsUserWatchCourseStatisticsExportVO> listVO = list.stream().map(v -> {
|
|
List<FsUserWatchCourseStatisticsExportVO> listVO = list.stream().map(v -> {
|
|
FsUserWatchCourseStatisticsExportVO vo = new FsUserWatchCourseStatisticsExportVO();
|
|
FsUserWatchCourseStatisticsExportVO vo = new FsUserWatchCourseStatisticsExportVO();
|
|
BeanUtils.copyProperties(v, vo);
|
|
BeanUtils.copyProperties(v, vo);
|
|
|
|
+ vo.setCompleteWatchRatePercent(v.getCompleteWatchRate() + "%");
|
|
return vo;
|
|
return vo;
|
|
}).collect(Collectors.toList());
|
|
}).collect(Collectors.toList());
|
|
ExcelUtil<FsUserWatchCourseStatisticsExportVO> util = new ExcelUtil<FsUserWatchCourseStatisticsExportVO>(FsUserWatchCourseStatisticsExportVO.class);
|
|
ExcelUtil<FsUserWatchCourseStatisticsExportVO> util = new ExcelUtil<FsUserWatchCourseStatisticsExportVO>(FsUserWatchCourseStatisticsExportVO.class);
|