|
|
@@ -142,8 +142,43 @@ public class FsCourseRedPacketLogController extends BaseController
|
|
|
return toAjax(fsCourseRedPacketLogService.deleteFsCourseRedPacketLogByLogIds(logIds));
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 查询课程列表(三级联动第一级)
|
|
|
+ */
|
|
|
@GetMapping("/courseList")
|
|
|
public R courseList()
|
|
|
+ {
|
|
|
+ // 总后台查询所有课程,不受公司限制
|
|
|
+ List<OptionsVO> optionsVOS = fsUserCourseMapper.selectFsUserCourseAllList();
|
|
|
+ return R.ok().put("list", optionsVOS);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据课程ID和营期名称模糊查询营期列表(三级联动第二级)
|
|
|
+ */
|
|
|
+ @GetMapping("/period")
|
|
|
+ public R getPeriodListLikeName(String periodName, Long courseId)
|
|
|
+ {
|
|
|
+ // 总后台查询所有营期,传入null表示不限制公司
|
|
|
+ List<OptionsVO> list = fsCourseRedPacketLogService.getPeriodListLikeName(periodName, courseId, null);
|
|
|
+ return R.ok().put("data", list);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据营期ID查询视频列表(三级联动第三级)
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/videoList/{id}")
|
|
|
+ public R videoList(@PathVariable("id") Long id)
|
|
|
+ {
|
|
|
+ List<OptionsVO> optionsVOS = fsUserCourseVideoMapper.selectVideoListByPeriodId(id);
|
|
|
+ return R.ok().put("list", optionsVOS);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询课程列表(企微用户绑定课程)
|
|
|
+ */
|
|
|
+ @GetMapping("/qwcourseList")
|
|
|
+ public R qwcourseList()
|
|
|
{
|
|
|
LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
Long userId = loginUser.getUser().getUserId();
|
|
|
@@ -158,8 +193,9 @@ public class FsCourseRedPacketLogController extends BaseController
|
|
|
return R.ok().put("list", optionsVOS);
|
|
|
}
|
|
|
|
|
|
- @GetMapping(value = "/videoList/{id}")
|
|
|
- public R videoList(@PathVariable("id") Long id)
|
|
|
+
|
|
|
+ @GetMapping(value = "/qwvideoList/{id}")
|
|
|
+ public R qwvideoList(@PathVariable("id") Long id)
|
|
|
{
|
|
|
List<OptionsVO> optionsVOS = fsUserCourseVideoMapper.selectFsUserCourseVodeAllList(id);
|
|
|
return R.ok().put("list", optionsVOS);
|