| | |
| | | Course byId = courseService.getById(id); |
| | | ClientCourseVO clientCourseVO = new ClientCourseVO(); |
| | | BeanUtils.copyProperties(byId, clientCourseVO); |
| | | clientCourseVO.setIsBuy(2); |
| | | List<AppUser> data = remoteAppUserService.getUserByCourseId(id).getData(); |
| | | if (byId.getChargeType()==1 && tokenService.getLoginUser()==null){ |
| | | if (data!=null){ |
| | |
| | | } |
| | | } |
| | | clientCourseVO.setList(page); |
| | | clientCourseVO.setIsBuy(2); |
| | | |
| | | // 查询推荐课程 |
| | | List<Course> list = courseService.lambdaQuery().eq(Course::getCateId, byId.getCateId()) |
| | | .eq(Course::getCourseType,1) |