|
@@ -24,6 +24,7 @@ import com.fs.course.param.newfs.UserCourseVideoPageParam;
|
|
|
import com.fs.course.service.*;
|
|
import com.fs.course.service.*;
|
|
|
import com.fs.course.vo.FsCourseWatchLogListVO;
|
|
import com.fs.course.vo.FsCourseWatchLogListVO;
|
|
|
import com.fs.course.vo.FsUserCourseParticipationRecordVO;
|
|
import com.fs.course.vo.FsUserCourseParticipationRecordVO;
|
|
|
|
|
+import com.fs.course.vo.FsUserCourseTrainingCampVO;
|
|
|
import com.fs.course.vo.newfs.*;
|
|
import com.fs.course.vo.newfs.*;
|
|
|
import com.fs.im.domain.FsImMsgSendLog;
|
|
import com.fs.im.domain.FsImMsgSendLog;
|
|
|
import com.fs.im.dto.OpenImResponseDTO;
|
|
import com.fs.im.dto.OpenImResponseDTO;
|
|
@@ -40,6 +41,8 @@ import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
+import javax.validation.Valid;
|
|
|
|
|
+
|
|
|
import java.io.InputStream;
|
|
import java.io.InputStream;
|
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
@@ -57,6 +60,9 @@ public class FsUserCourseVideoController extends AppBaseController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IFsUserCourseService fsUserCourseService;
|
|
private IFsUserCourseService fsUserCourseService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IFsUserCourseTrainingCampService fsUserCourseTrainingCampService;
|
|
|
|
|
+
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IFsCourseLinkService courseLinkService;
|
|
private IFsCourseLinkService courseLinkService;
|
|
|
|
|
|
|
@@ -97,16 +103,39 @@ public class FsUserCourseVideoController extends AppBaseController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Login
|
|
@Login
|
|
|
- @GetMapping("/courseList")
|
|
|
|
|
- @ApiOperation("获取课程下拉列表")
|
|
|
|
|
- public ResponseResult<PageInfo<FsUserCourseListVO>> getAllCourseList(FsUserCourseListParam param) {
|
|
|
|
|
|
|
+ @PostMapping("/courseList")
|
|
|
|
|
+ @ApiOperation("获取营期下拉列表")
|
|
|
|
|
+ public ResponseResult<PageInfo<FsUserCourseListVO>> getAllCourseList(@Valid @RequestBody FsUserCourseListParam param) {
|
|
|
|
|
+ log.info("查询营期列表 - 参数: trainingCampId={}, companyId={}, keyword={}, pageNum={}, pageSize={}",
|
|
|
|
|
+ param.getTrainingCampId(), getCompanyId(), param.getKeyword(), param.getPageNum(), param.getPageSize());
|
|
|
|
|
+
|
|
|
PageHelper.startPage(param.getPageNum(), param.getPageSize());
|
|
PageHelper.startPage(param.getPageNum(), param.getPageSize());
|
|
|
param.setCompanyId(getCompanyId());
|
|
param.setCompanyId(getCompanyId());
|
|
|
|
|
+
|
|
|
List<FsUserCourseListVO> fsUserCourseList = fsUserCourseService.getFsUserCourseList(param);
|
|
List<FsUserCourseListVO> fsUserCourseList = fsUserCourseService.getFsUserCourseList(param);
|
|
|
|
|
+ log.info("查询营期列表 - 结果数量: {}", fsUserCourseList.size());
|
|
|
|
|
+
|
|
|
PageInfo<FsUserCourseListVO> pageInfo = new PageInfo<>(fsUserCourseList);
|
|
PageInfo<FsUserCourseListVO> pageInfo = new PageInfo<>(fsUserCourseList);
|
|
|
return ResponseResult.ok(pageInfo);
|
|
return ResponseResult.ok(pageInfo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Login
|
|
|
|
|
+ @GetMapping("/trainingCampList")
|
|
|
|
|
+ @ApiOperation("获取训练营下拉列表")
|
|
|
|
|
+ public ResponseResult<PageInfo<FsUserCourseTrainingCampVO>> getTrainingCampList(
|
|
|
|
|
+ @RequestParam(defaultValue = "1") Integer pageNum,
|
|
|
|
|
+ @RequestParam(defaultValue = "10") Integer pageSize,
|
|
|
|
|
+ @RequestParam(required = false) String keyword) {
|
|
|
|
|
+ PageHelper.startPage(pageNum, pageSize);
|
|
|
|
|
+ Map<String, Object> params = new HashMap<>();
|
|
|
|
|
+ params.put("companyId", getCompanyId());
|
|
|
|
|
+ if (StringUtils.isNotEmpty(keyword)) {
|
|
|
|
|
+ params.put("trainingCampName", keyword);
|
|
|
|
|
+ }
|
|
|
|
|
+ List<FsUserCourseTrainingCampVO> list = fsUserCourseTrainingCampService.selectTrainingCampListForApp(params);
|
|
|
|
|
+ return ResponseResult.ok(new PageInfo<>(list));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@Login
|
|
@Login
|
|
|
@GetMapping("/videoList")
|
|
@GetMapping("/videoList")
|
|
|
@ApiOperation("获取视频下拉列表")
|
|
@ApiOperation("获取视频下拉列表")
|