|
@@ -74,11 +74,14 @@ public class FsCourseWatchLogController extends BaseController
|
|
@GetMapping("/statisticsList")
|
|
@GetMapping("/statisticsList")
|
|
public TableDataInfo statisticsList(FsCourseWatchLogStatisticsListParam param)
|
|
public TableDataInfo statisticsList(FsCourseWatchLogStatisticsListParam param)
|
|
{
|
|
{
|
|
|
|
+ // 如果看指定用户就不用设置公司
|
|
if(param.getCompanyId() == null){
|
|
if(param.getCompanyId() == null){
|
|
- throw new CustomException("必须选择公司!");
|
|
|
|
|
|
+ if(param.getUserId() == null) {
|
|
|
|
+ throw new CustomException("查看公司或者用户必填!");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (param.getSTime()==null||param.getETime()==null){
|
|
if (param.getSTime()==null||param.getETime()==null){
|
|
- return getDataTable(new ArrayList<>());
|
|
|
|
|
|
+ throw new CustomException("必须选择开始时间和结束时间!");
|
|
}
|
|
}
|
|
List<FsCourseWatchLogStatisticsListVO> list = fsCourseWatchLogService.selectFsCourseWatchLogStatisticsListVONew(param);
|
|
List<FsCourseWatchLogStatisticsListVO> list = fsCourseWatchLogService.selectFsCourseWatchLogStatisticsListVONew(param);
|
|
TableDataInfo rspData = new TableDataInfo();
|
|
TableDataInfo rspData = new TableDataInfo();
|
|
@@ -138,7 +141,6 @@ public class FsCourseWatchLogController extends BaseController
|
|
public TableDataInfo watchLogStatistics(FsCourseOverParam param)
|
|
public TableDataInfo watchLogStatistics(FsCourseOverParam param)
|
|
{
|
|
{
|
|
startPage();
|
|
startPage();
|
|
- LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
|
if (param.getSTime()==null||param.getETime()==null){
|
|
if (param.getSTime()==null||param.getETime()==null){
|
|
return getDataTable(new ArrayList<>());
|
|
return getDataTable(new ArrayList<>());
|
|
}
|
|
}
|
|
@@ -148,7 +150,6 @@ public class FsCourseWatchLogController extends BaseController
|
|
@GetMapping("/watchLogStatisticsExport")
|
|
@GetMapping("/watchLogStatisticsExport")
|
|
public AjaxResult watchLogStatisticsExport(FsCourseOverParam param)
|
|
public AjaxResult watchLogStatisticsExport(FsCourseOverParam param)
|
|
{
|
|
{
|
|
- LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
|
if (param.getSTime()==null||param.getETime()==null){
|
|
if (param.getSTime()==null||param.getETime()==null){
|
|
return AjaxResult.error("请选择时间");
|
|
return AjaxResult.error("请选择时间");
|
|
}
|
|
}
|