From 99367ea1c11a68b420936e7f7db5fa7367da4f44 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期三, 22 一月 2025 11:44:54 +0800 Subject: [PATCH] 全部代码、数据库提交 --- xinquan-modules/xinquan-course/src/main/java/com/xinquan/course/controller/client/ClientCourseChapterController.java | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/xinquan-modules/xinquan-course/src/main/java/com/xinquan/course/controller/client/ClientCourseChapterController.java b/xinquan-modules/xinquan-course/src/main/java/com/xinquan/course/controller/client/ClientCourseChapterController.java index cbb3ee4..9cea515 100644 --- a/xinquan-modules/xinquan-course/src/main/java/com/xinquan/course/controller/client/ClientCourseChapterController.java +++ b/xinquan-modules/xinquan-course/src/main/java/com/xinquan/course/controller/client/ClientCourseChapterController.java @@ -58,12 +58,10 @@ } 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)); @@ -86,7 +84,7 @@ 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") -- Gitblit v1.7.1