|
@@ -7,7 +7,10 @@ import com.fs.common.core.domain.AjaxResult;
|
|
|
import com.fs.common.core.domain.R;
|
|
|
import com.fs.common.core.page.TableDataInfo;
|
|
|
import com.fs.common.enums.BusinessType;
|
|
|
+import com.fs.common.utils.ServletUtils;
|
|
|
import com.fs.common.utils.poi.ExcelUtil;
|
|
|
+import com.fs.core.security.LoginUser;
|
|
|
+import com.fs.core.web.service.TokenService;
|
|
|
import com.fs.course.domain.FsCourseTrafficLog;
|
|
|
import com.fs.course.mapper.FsUserCourseVideoMapper;
|
|
|
import com.fs.course.param.FsCourseTrafficLogParam;
|
|
@@ -43,6 +46,8 @@ public class FsCourseTrafficLogController extends BaseController
|
|
|
private IFsUserCourseService fsUserCourseMapper;
|
|
|
@Autowired
|
|
|
private FsUserCourseVideoMapper fsUserCourseVideoMapper;
|
|
|
+ @Autowired
|
|
|
+ private TokenService tokenService;
|
|
|
/**
|
|
|
* 查询短链课程流量记录列表
|
|
|
*/
|
|
@@ -121,14 +126,18 @@ public class FsCourseTrafficLogController extends BaseController
|
|
|
@GetMapping("/courseList")
|
|
|
public R courseList()
|
|
|
{
|
|
|
- List<OptionsVO> optionsVOS = fsUserCourseMapper.selectFsUserCourseAllList();
|
|
|
+ LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
+ List<OptionsVO> optionsVOS = fsUserCourseMapper.selectFsUserCourseAllList(loginUser.getUser().getUserId());
|
|
|
return R.ok().put("list", optionsVOS);
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = "/videoList/{id}")
|
|
|
public R videoList(@PathVariable("id") Long id)
|
|
|
{
|
|
|
- List<OptionsVO> optionsVOS = fsUserCourseVideoMapper.selectFsUserCourseVodeAllList(id);
|
|
|
+
|
|
|
+ LoginUser loginUser = tokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
+
|
|
|
+ List<OptionsVO> optionsVOS = fsUserCourseVideoMapper.selectFsUserCourseVodeAllList(id,loginUser.getUser().getUserId());
|
|
|
return R.ok().put("list", optionsVOS);
|
|
|
}
|
|
|
}
|