|
@@ -1,6 +1,7 @@
|
|
|
package com.fs.course.controller;
|
|
|
|
|
|
import com.fs.common.annotation.Log;
|
|
|
+import com.fs.common.constant.HttpStatus;
|
|
|
import com.fs.common.core.controller.BaseController;
|
|
|
import com.fs.common.core.domain.AjaxResult;
|
|
|
import com.fs.common.core.page.TableDataInfo;
|
|
@@ -26,6 +27,7 @@ import com.fs.qw.service.IQwWatchLogService;
|
|
|
import com.fs.qw.vo.QwWatchLogAllStatisticsListVO;
|
|
|
import com.fs.qw.vo.QwWatchLogStatisticsListVO;
|
|
|
import com.fs.sop.mapper.SopUserLogsMapper;
|
|
|
+import com.github.pagehelper.PageInfo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -58,18 +60,21 @@ public class FsCourseWatchLogController extends BaseController
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(FsCourseWatchLogListParam param)
|
|
|
{
|
|
|
- startPage();
|
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
param.setCompanyId( loginUser.getCompany().getCompanyId());
|
|
|
List<FsCourseWatchLogListVO> list = fsCourseWatchLogService.selectFsCourseWatchLogListVO(param);
|
|
|
- return getDataTable(list);
|
|
|
+ TableDataInfo rspData = new TableDataInfo();
|
|
|
+ rspData.setCode(HttpStatus.SUCCESS);
|
|
|
+ rspData.setMsg("查询成功");
|
|
|
+ rspData.setRows(list);
|
|
|
+ rspData.setTotal(fsCourseWatchLogService.selectFsCourseWatchLogListVOCount(param));
|
|
|
+ return rspData;
|
|
|
}
|
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('course:courseWatchLog:statisticsList')")
|
|
|
@GetMapping("/statisticsList")
|
|
|
public TableDataInfo statisticsList(FsCourseWatchLogStatisticsListParam param)
|
|
|
{
|
|
|
- startPage();
|
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
param.setCompanyId( loginUser.getCompany().getCompanyId());
|
|
|
if (param.getSTime()==null||param.getETime()==null){
|
|
@@ -88,7 +93,7 @@ public class FsCourseWatchLogController extends BaseController
|
|
|
if (param.getSTime()==null||param.getETime()==null){
|
|
|
return getDataTable(new ArrayList<>());
|
|
|
}
|
|
|
- List<QwWatchLogStatisticsListVO> list = qwWatchLogService.selectQwWatchLogStatisticsListVONew(param);
|
|
|
+ List<QwWatchLogStatisticsListVO> list = qwWatchLogService.selectQwWatchLogStatisticsListVO(param);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
@GetMapping("/myQwWatchLogStatisticsList")
|
|
@@ -101,7 +106,7 @@ public class FsCourseWatchLogController extends BaseController
|
|
|
if (param.getSTime()==null||param.getETime()==null){
|
|
|
return getDataTable(new ArrayList<>());
|
|
|
}
|
|
|
- List<QwWatchLogStatisticsListVO> list = qwWatchLogService.selectQwWatchLogStatisticsListVONew(param);
|
|
|
+ List<QwWatchLogStatisticsListVO> list = qwWatchLogService.selectQwWatchLogStatisticsListVO(param);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
@@ -115,7 +120,7 @@ public class FsCourseWatchLogController extends BaseController
|
|
|
if (param.getSTime()==null||param.getETime()==null){
|
|
|
return getDataTable(new ArrayList<>());
|
|
|
}
|
|
|
- List<QwWatchLogAllStatisticsListVO> list = qwWatchLogService.selectQwWatchLogAllStatisticsListVONew(param);
|
|
|
+ List<QwWatchLogAllStatisticsListVO> list = qwWatchLogService.selectQwWatchLogAllStatisticsListVO(param);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
@GetMapping("/myQwWatchLogAllStatisticsList")
|
|
@@ -128,7 +133,7 @@ public class FsCourseWatchLogController extends BaseController
|
|
|
if (param.getSTime()==null||param.getETime()==null){
|
|
|
return getDataTable(new ArrayList<>());
|
|
|
}
|
|
|
- List<QwWatchLogAllStatisticsListVO> list = qwWatchLogService.selectQwWatchLogAllStatisticsListVONew(param);
|
|
|
+ List<QwWatchLogAllStatisticsListVO> list = qwWatchLogService.selectQwWatchLogAllStatisticsListVO(param);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
@GetMapping("/watchLogStatistics")
|
|
@@ -184,7 +189,12 @@ public class FsCourseWatchLogController extends BaseController
|
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
param.setCompanyId( loginUser.getCompany().getCompanyId());
|
|
|
List<FsCourseWatchLogListVO> list = fsCourseWatchLogService.selectFsCourseWatchLogListVO(param);
|
|
|
- return getDataTable(list);
|
|
|
+ TableDataInfo rspData = new TableDataInfo();
|
|
|
+ rspData.setCode(HttpStatus.SUCCESS);
|
|
|
+ rspData.setMsg("查询成功");
|
|
|
+ rspData.setRows(list);
|
|
|
+ rspData.setTotal(fsCourseWatchLogService.selectFsCourseWatchLogListVOCount(param));
|
|
|
+ return rspData;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -195,7 +205,7 @@ public class FsCourseWatchLogController extends BaseController
|
|
|
@GetMapping("/export")
|
|
|
public AjaxResult export(FsCourseWatchLogListParam param)
|
|
|
{
|
|
|
- List<FsCourseWatchLogListVO> list = fsCourseWatchLogService.selectFsCourseWatchLogListVOExport(param);
|
|
|
+ List<FsCourseWatchLogListVO> list = fsCourseWatchLogService.selectFsCourseWatchLogListVO(param);
|
|
|
ExcelUtil<FsCourseWatchLogListVO> util = new ExcelUtil<FsCourseWatchLogListVO>(FsCourseWatchLogListVO.class);
|
|
|
return util.exportExcel(list, "短链课程看课记录数据");
|
|
|
}
|
|
@@ -210,7 +220,7 @@ public class FsCourseWatchLogController extends BaseController
|
|
|
{
|
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
param.setCompanyId( loginUser.getCompany().getCompanyId());
|
|
|
- List<FsCourseWatchLogListVO> list = fsCourseWatchLogService.selectFsCourseWatchLogListVOExport(param);
|
|
|
+ List<FsCourseWatchLogListVO> list = fsCourseWatchLogService.selectFsCourseWatchLogListVO(param);
|
|
|
ExcelUtil<FsCourseWatchLogListVO> util = new ExcelUtil<FsCourseWatchLogListVO>(FsCourseWatchLogListVO.class);
|
|
|
return util.exportExcel(list, "短链课程看课记录数据");
|
|
|
}
|