|
@@ -49,8 +49,7 @@ public class UserPlanController extends BaseController {
|
|
|
private final IUserPlanService iUserPlanService;
|
|
|
|
|
|
|
|
|
- @Autowired
|
|
|
- private WxTokenService wxTokenService;
|
|
|
+ private final WxTokenService wxTokenService;
|
|
|
/**
|
|
|
* 查询学习计划列表
|
|
|
*/
|
|
@@ -99,6 +98,8 @@ public class UserPlanController extends BaseController {
|
|
|
@ApiOperation("获得展示的日历学习计划,不添加到数据库")
|
|
|
@GetMapping("/listPlan")
|
|
|
public AjaxResult<UserPlanVo> listPlan(UserPlanEditBo bo) {
|
|
|
+ ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
+ bo.setUserId(loginUser.getUser().getUserId());
|
|
|
UserPlanVo list = iUserPlanService.listPlan(bo);
|
|
|
return AjaxResult.success(list);
|
|
|
}
|
|
@@ -106,10 +107,10 @@ public class UserPlanController extends BaseController {
|
|
|
/**
|
|
|
* 查询学习计划列表
|
|
|
*/
|
|
|
- /* @ApiOperation("查询学员拥有商品能生成学习计划的商品")
|
|
|
+ /* @ApiOperation("查询学员拥有商品能生成学习计划的商品")
|
|
|
@GetMapping("/listGoods")
|
|
|
public TableDataInfo<GoodsVo> listGoods(UserPlanQueryBo bo) {
|
|
|
- ClientLoginUser loginUser = WxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
+ ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
bo.setUserId(loginUser.getUser().getUserId());
|
|
|
List<GoodsVo> list = iUserPlanService.listGoods(bo);
|
|
|
return getDataTable(list);
|