| | |
| | | orderCourseVO.setGeneralPrice(meditation.getGeneralPrice()); |
| | | orderCourseVO.setIosPrice(meditation.getIosPrice()); |
| | | orderCourseVO.setCoverUrl(meditation.getCoverUrl()); |
| | | orderCourseVO.setCoverDescription(meditation.getCoverDescription()); |
| | | orderCourseVO.setCount(meditation.getRealLearnedNum()+meditation.getVirtualLearnedNum()); |
| | | orderCourseVOS.add(orderCourseVO); |
| | | } |
| | |
| | | .eq(CourseChapter::getCourseId, record.getId()).list(); |
| | | // 章节列表累加虚拟学习人数 |
| | | int temp = 0; |
| | | int temp1 = 0; |
| | | for (CourseChapter courseChapter : list) { |
| | | temp+=courseChapter.getVirtualLearnedNum(); |
| | | Long data1 = remoteAppUserService.getCourseChapterHistoryCount(courseChapter.getId()).getData(); |
| | | temp1+=data1; |
| | | } |
| | | record.setCount(size1+temp); |
| | | record.setCount(temp1+temp); |
| | | } |
| | | return R.ok(coursePageList); |
| | | } |