| | |
| | | } |
| | | for (CourseChapter record : page.getRecords()) { |
| | | record.setUid(record.getId()+""); |
| | | int a = 0; |
| | | int b = 0; |
| | | a+= record.getVirtualLearnedNum(); |
| | | Long data1 = remoteAppUserService.getCourseChapterHistoryCount(record.getId()).getData(); |
| | | b+=data1; |
| | | record.setRealLearnedNum(a+b); |
| | | record.setRealLearnedNum(b); |
| | | } |
| | | |
| | | return R.ok(PageDTO.of(page, CourseChapter.class)); |
| | |
| | | a+= byId.getVirtualLearnedNum(); |
| | | Long data1 = remoteAppUserService.getCourseChapterHistoryCount(byId.getId()).getData(); |
| | | b+=data1; |
| | | byId.setRealLearnedNum(a+b); |
| | | byId.setRealLearnedNum(b); |
| | | return R.ok(byId); |
| | | } |
| | | @PostMapping("/updateCourseChapter") |