|
@@ -1,10 +1,12 @@
|
|
|
package com.fs.app.controller;
|
|
|
|
|
|
+import com.fs.common.core.domain.R;
|
|
|
import com.fs.common.core.domain.ResponseResult;
|
|
|
import com.fs.course.param.newfs.FsUserCourseListParam;
|
|
|
import com.fs.course.param.newfs.UserCourseVideoPageParam;
|
|
|
import com.fs.course.service.IFsUserCourseService;
|
|
|
import com.fs.course.service.IFsUserCourseVideoService;
|
|
|
+import com.fs.course.vo.FsCourseAnalysisVO;
|
|
|
import com.fs.course.vo.FsUserCourseListPVO;
|
|
|
import com.fs.course.vo.newfs.FsUserCourseVideoDetailsVO;
|
|
|
import com.fs.course.vo.newfs.FsUserCourseVideoPageListVO;
|
|
@@ -16,7 +18,9 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
|
|
|
@Api("课程库相关接口")
|
|
@@ -55,4 +59,24 @@ public class FsUserCourseVideoController extends AppBaseController {
|
|
|
PageInfo<FsUserCourseListPVO> pageInfo = new PageInfo<>(fsUserCourseList);
|
|
|
return ResponseResult.ok(pageInfo);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation("课程分析")
|
|
|
+ @GetMapping("/courseAnalysis")
|
|
|
+ public R courseAnalysis(@RequestParam(required = false) Long courseId,
|
|
|
+ @RequestParam(required = false) Integer status,
|
|
|
+ @RequestParam(required = false, value = "true") Boolean isToday,
|
|
|
+ @RequestParam(required = false, defaultValue = "1") Integer pageNum,
|
|
|
+ @RequestParam(required = false, defaultValue = "10") Integer pageSize) {
|
|
|
+
|
|
|
+ Map<String,Object> params = new HashMap<>();
|
|
|
+ params.put("courseId", courseId);
|
|
|
+ params.put("companyId", getCompanyId());
|
|
|
+ params.put("isToday", isToday);
|
|
|
+ params.put("status", status);
|
|
|
+
|
|
|
+ // TODO: 查询课程
|
|
|
+ PageHelper.startPage(pageNum, pageSize);
|
|
|
+ List<FsCourseAnalysisVO> list = fsUserCourseVideoService.getCourseAnalysisByMap(params);
|
|
|
+ return R.ok().put("data", new PageInfo<>(list));
|
|
|
+ }
|
|
|
}
|